jchristn/WatsonWebsocket

Multiple connections between client and server

Closed this issue · 1 comments

Hello.

I'm not sure whether this is a feature request or a question.

I'm looking to implement multiple, concurrent websocket connections between a client and a server. So that there can be 1-n websockets concurrently between the same server and client.

Is this possible with WatsonWebsocket? My initial impression is no - since the connections seem to be identified by ipPort, which is unique to one client, but doesn't leave any way to address multiple connections from the same client (where ip and port would both be identical)

If I'm missing something and this is possible - that's wonderful. Otherwise consider it a feature request :)

Hi @GeeWee you can certainly create multiple instances of the WatsonWebsocketClient class. Each instantiation would create a new connection (and thus a new port for each). Cheers, Joel