162163164165166167168169170
} catch (URISyntaxException e) { LOG.severe("Unable to create ws:// uri from given address (" + inetAddress + ")", e); throw new IllegalStateException(e); } WebSocket websocket = new WebSocket(uri); websocket.connect(); return websocket; } }