PHP_SocketIO_Client icon indicating copy to clipboard operation
PHP_SocketIO_Client copied to clipboard

Cannot set namespace

Open dinomov opened this issue 10 years ago • 2 comments

great script, but I cannot set namespace here is piece of log if you see packet has nsp is default "/"

Wed, 21 Oct 2015 14:07:27 GMT socket.io:socket DfdKsdG4A3uuruUmAAAz got packet {"type":2,"nsp":"/","data":["message_sent",{"users":["admin","kst"],"groups":[],"employee":0,"citizen":0}]}
Wed, 21 Oct 2015 14:07:27 GMT socket.io:socket DfdKsdG4A3uuruUmAAAz emitting event ["message_sent",{"users":["admin","kst"],"groups":[],"employee":0,"citizen":0}] 

dinomov avatar Oct 21 '15 14:10 dinomov

How can I set namespace?

I have following code on server side in socket.io

io.of('/call_signalling').on('connection', function(socket){

    socket.on('message_sent', function (recipients){
        if(recipients){
                ...

dinomov avatar Oct 21 '15 14:10 dinomov

@psinetron can you advice

dinomov avatar Oct 21 '15 17:10 dinomov