How to connect to multiple URI(create multiple sessions) using javax websocket?

Part of code that I use to create session:

container = ContainerProvider.getWebSocketContainer();
container.connectToServer(o, new URI(uri));

How can I create multiple sessions(with different URI)? Maybe there’s sample how to do it.

Leave a Reply

avatar
  Subscribe  
Notify of