I'm playing with WebSocket to estabilish a connection between the server and a B4A/B4I application.
I have read that is possible to manage multiple connections, but It's not clear to me how to implement it.
Supposing to estabilish 100 connections between the server and clients1 to clients100.
Now I want the server to send a message to client5.
How can the server know who is the client5 and how the send message only to him ?
The server broadcasts its address on the network. Clients listen to the broadcast address. Once the client knows the server address, the client can send its IP to the server. The server stores the client address and can then direct messages back to individual clients.
The server broadcasts its address on the network. Clients listen to the broadcast address. Once the client knows the server address, the client can send its IP to the server. The server stores the client address and can then direct messages back to individual clients.