Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

SRWebSocket receives response bot does not dispatch to delegate #25

Open
GevaZeichner opened this issue Jul 15, 2012 · 4 comments
Open

Comments

@GevaZeichner
Copy link

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?

@steven-hack
Copy link

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).

@humbroll
Copy link

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

Any solution?

@krulll
Copy link

krulll commented May 9, 2014

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

Any solution?

@f-ewald
Copy link

f-ewald commented Oct 13, 2014

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.

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

5 participants