socket.IO-objc icon indicating copy to clipboard operation
socket.IO-objc copied to clipboard

SRWebSocket receives response bot does not dispatch to delegate

Open GevaZeichner opened this issue 12 years ago • 4 comments

In the function _handleMessage: I can see a response message from the server, but the code inside dispatch_async is not executed and thus the function webSocket:didReceiveMessage: isn't. This doesn't occur in other cases I send messages to server. What might be wrong in this specific case?

GevaZeichner avatar Jul 15 '12 13:07 GevaZeichner

I have the same problem where events are retrieved (Seeing from the log of the Socket.IO library) but not delegated.

The didReceiveEvent method is not called at al. This is strange because the socketIODidConnect is called. (And from there I send a new event, where the server in turn sends an event back).

steven-hack avatar Apr 06 '13 17:04 steven-hack

I have the same problem. Even I couldn't receive delegate callback method:- (void) socketIODidConnect:(SocketIO *)socket

Any solution?

humbroll avatar Nov 20 '13 06:11 humbroll

I have the same problem. Even I couldn't receive delegate callback method:- (void) socketIODidConnect:(SocketIO *)socket

Any solution?

krulll avatar May 09 '14 20:05 krulll

Exaclty the same probem for me. I set breakpoints in the Socket.IO.m and the program didn't reach them.

UPDATE: Found it. The delegate MUST be defined as "strong" in the header file. Everything works perfect.

f-ewald avatar Oct 13 '14 13:10 f-ewald