1. connect to socket host:5000
2. authenticate
3. send commands
4. receive commands
As far as i discovered in this framework, I can make a middleware for authentication even for sockets.
My application also contains a web server, and in some cases I need to communicate to specific socket client.
I'm wondering, how can i communicate with each client based on authentication credentials (I saw there is a connection.sendMessage(message, type) method, is ok to use it?!)
And also i want to disable public chat room.
Thanks,