I have created a client/server application. Now, clients can send requests to the server and receive server response. Now I want to notify all connected clients to perform some actions. How can I do that?
I have created a client/server application. Now, clients can send requests to the server
Share
Register all connected clients on the server and store references to clients in the
Listinstance.If you want to inform your clients asynchronously then open ServerSocket instance on your every client and accept connections only from the server they are using.
And in this case your server acts as a client and sends a request to all connected clients like a client sends request to the server.