PHP_SocketIO_Client
PHP_SocketIO_Client copied to clipboard
Cannot set namespace
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}]
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){
...
@psinetron can you advice