-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emit Dont Work: Solved #18
Comments
### Oh i forgot to say that at the example code you must set the $action and $data to your Event name and Your data that you need to be send like this:
thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello guys..
i working at this library and i see that i can connect and disconnect to the nodejs socketio Server with this code but i have one problem, the emit the event didnt work .. i try to google it and i didnt find anything so i fixed by my some experiences so i let you guys use it if having same problem.
this is the final socket.io.php file:
i changed these
'42["' . $action . '", "' . addslashes($data) . '"]'
to
'42["' . $action . '", "'.$data. '"]'
and
/socket.io/?EIO=3
to
/socket.io/?EIO=2
and also i add some delay after handshake ,before emit like this:
sleep(1);
**and this is my test that its the same with original example:
you must replace the XXX.XXX.XXX.XXX and XX with your server ip and port.
Thanks for read.
The text was updated successfully, but these errors were encountered: