phpsocket.io icon indicating copy to clipboard operation
phpsocket.io copied to clipboard

Is there any support namespace?

Open AlexRas007 opened this issue 5 years ago • 1 comments

Client: var socket = io('http://api.diso.loc:2021/users')

Server: $io->of('users')->on('connection', static function($socket) { echo 'OK'; });

Not working.

AlexRas007 avatar Nov 24 '20 12:11 AlexRas007

Try the codes.

$io->of('/users')->on('connection', static function($socket) { echo 'OK'; });

passwalls avatar Nov 25 '20 02:11 passwalls