I was wondering what are the best practices for socket.IO authentication.
Alice emits event 'message' with parameters including Bobs unique identifier etc. Bob receives the message while listening to socket.on('message') event.
How do I prevent unauthenticated users from ever connecting to the server using Socket.IO and how do I emit event to only specific user?
Thank you very much in advance for all suggestions and answers. Peter