socket.io - How can I workout sockets in boilerplate structure with unauthenticated? -


i working sockets (meanjs - boilerplate ) . i'm unable workout chat without authentication. want user should able chat without signing in. , have doubt, can have sockets in different modules can't talk each other?

thank you

i think need adapt code in /config/lib/socket.io.js achieve that. have change code block starts in line 78 of file, handles session , passport authentication during socket.io handshake won't check authentication, allowing socket connection established without it.

for second question, comment gives hints on how expand default socket implementation more complex situations.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -