예제 #1
0
 public WSClient() throws IOException, URISyntaxException {
   // super(new
   // URI("ws://localhost:9000/hola?sucursalId="+Config.getInstance().dataSourceConfig.idSucursal));
   super(new URI(Config.getInstance().wsURL + "/hola?sucursalId=" + idSucursal));
   // super(new
   // URI("ws://damp-anchorage-4847.herokuapp.com/hello?sucursalId="+Config.getInstance().dataSourceConfig.idSucursal));
 }
예제 #2
0
 @Override
 public void iniciar() {
   try {
     idSucursal = Config.getInstance().dataSourceConfig.idSucursal;
     wsClient = new WSClient();
     wsClient.connect();
   } catch (IOException e) {
     Logger.getLogger(WebSocketWS.class).error("iniciar", e);
   } catch (URISyntaxException e) {
     Logger.getLogger(WebSocketWS.class).error("iniciar", e);
   }
 }