onSocketWriteResponse not getting called
In ComplexDemoActivity socket is getting connected and message is got received by the server but when server sends the message the onSocketWriteResponse method is not getting called. Please help
First, I must be sure you are using the client AAR.
Second, The onSocketWriteResponse method be called when you send a message successfully. not be called when server feedback.
If you want to receive a message from the server, you should overwrite the onSocketReadResponse method, and it will be called when the server sends a message to you.
Hope helpful!
@xuuhaoo sorry i am not getting what is AAR client? also onSocketWriteResponse is getting called when i am sending the message to server but onSocketReadResponse is not getting called when server sending back the message. Please help.
Maybe you can try the demo app, and there is a socket server in it, you can connect the demo app and try to send something and you'll receive the things that you sent. I guess the bytes from your server sent is not according to the protocol which is okSocket default defined, you can read the document as follows link The Protocol about receiving