I'm new in socket.io thing and already created a chat app in my current project. Now I want my app to be more secured and found out that I need to use socket.io session so I use express-socket.io-session. My chat app is just like in facebook send message to a specific person. For now Im using
socket.on('message:' + authid ,function(message) { // do anything })
in my client side to listen all sent message to the current user. I know it's to risky to display the user id in the front end. Any suggestion what should I do to hide this user id from the user without affecting the channel of the user.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire