walkor / phpsocket.io

A server side alternative implementation of socket.io in PHP based on workerman.
2.3k stars 507 forks source link

How to use namespace? #207

Closed zhuo-jiejie closed 4 years ago

zhuo-jiejie commented 4 years ago

client: io('http://localhost/client');

response: Invalid Namespace

So, how to use namespace?

zhuo-jiejie commented 4 years ago

$io = new SocketIO();

$io->of("/client")->on();