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)); }
@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); } }