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