Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

onMessage does not called #84

Closed
mike-aungsan opened this issue Mar 12, 2014 · 3 comments
Closed

onMessage does not called #84

mike-aungsan opened this issue Mar 12, 2014 · 3 comments

Comments

@mike-aungsan
Copy link

When message recieve, IOCallback
on(java.lang.String event, IOAcknowledge ack, java.lang.Object... args) is called.

But neither onMessage(java.lang.String data, IOAcknowledge ack)
nor onMessage(org.json.JSONObject json, IOAcknowledge ack) being called.

PLEASE HELP !

THX

@Trellmor
Copy link

Are you using socket.emit() or socket.send() on the server side? If you use socket.emit() it is a custom event and IOCallback.on() will be called.

If you use socket.send() on the server it should send a message and IOCallback.onMessage should get called.

@mike-aungsan
Copy link
Author

Thanks you very much !

@shreyanshjain
Copy link

I am using socket.send after using socket.connect, but it's the same. On is called not onMessage, Please Help.

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

No branches or pull requests

3 participants