weixin_39718083 2020-11-29 11:50
浏览 0

I can send message to server in PHP but how do I use $socket->broadcast->emit besides $io->emit?

PHP Server Side: https://gist.github.com/berkantipek/9e1f97b48a7309a18511

PHP script to send message to the server: https://gist.github.com/berkantipek/75c3d36239e2e6c77695

It works for $io->emit in server_event_handler() function but as I said, I need to use $socket->broadcast->emit besides $io->emit as well in server_event_handler() function because I need to send different datas to clients. Please help me to do.

Thanks in advance.

该提问来源于开源项目:walkor/phpsocket.io

  • 写回答

0条回答 默认 最新

    报告相同问题?