node.js - Socket.io using default namespace with some custom namepsace, not working -


i trying use default namespace '\' connecting general android application sockets socket.io , want make custom namespace website '/web' when client io.connect('/web') connects default namespace.

basically want authorization of all, not /web namespace. here code  io.sockets.on('connection', function (socket, next) {   //some handshaking data varify connection }  io.of('/web').on('connection', function(socket, next) {   //here want skip verification }   got request on default instead of /web. 

socket.io connection event trigger /default namespace on socket connections.

later events client trigger on namespace connected to.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -