Skip to content
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

Cant emit SocketIO Events #16

Open
awdng opened this issue Oct 19, 2013 · 3 comments
Open

Cant emit SocketIO Events #16

awdng opened this issue Oct 19, 2013 · 3 comments

Comments

@awdng
Copy link

awdng commented Oct 19, 2013

I cant seem to emit Events on my SocketIO node-js server. The Emit function doesnt seem to do anything.

I have seen some examples from pomelo clients but they use a custom protocol which SocketIO Servers dont recognize...So why is this called a SocketIO library ? Its a Websocket library using a custom protocol imo.

I can recieve Events in Unity with my own custom EventHandler, but i cant send Messages to the server.

Any help appreciated, the pomelo examples dont help me though, its a custom binary protocol.

@vrwalking
Copy link

The emit and recieving of events are not properly functioning because of the json parser parsing "name" as "Name" and "args" as "Args" which are the main keywords for forming an event message. I dont have a proper solution because i have used another solution for my ios project. You can get some from below link

#9

@static-x
Copy link

@awdng could you share your custom EventHandler to recieve Events in Unity?

@awdng
Copy link
Author

awdng commented Oct 30, 2013

I actually decoded the JSON myself and just emitted an event based on the string in the JSON message. I deleted it though as i removed this lib from my project because i cant emit events on to the socketIO server. If what @vrwalking says is true, one could maybe make it emit events when constructing the correct json with lowercase strings, or someone could fork this, make the changes so that Event stuff works correctly and make a pull request. I dont really have time for that currently though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants