socketcluster-client-ios icon indicating copy to clipboard operation
socketcluster-client-ios copied to clipboard

Client Pong timed out

Open rachelxj opened this issue 9 years ago • 5 comments

Can't communiate with server, client pong timed out, the connection is disconnected too often

rachelxj avatar Jan 06 '16 09:01 rachelxj

@rachelxj @jondubois Can you give detail about how we can reproduce this.

lihan avatar Jan 06 '16 11:01 lihan

Hi @lihan -

Just FYI - I'm experiencing the same thing with a very basic setup. I created a socketcluster app, fired it up with node server.js. I installed socketcluster-client-iOS via cocoapods and followed the instructions exactly.

Client side gets a lot of this:

WVJB RCVD: {"callbackId":"cb_6_1456874992151","handlerName":"onErrorHandler","data":{"data":"Server ping timed out"}} WVJB RCVD: {"callbackId":"cb_9_1456875013152","handlerName":"onErrorHandler","data":{"data":"Client pong timed out"}}

Server side gets a lot of this:

[Warning] SocketProtocolError: Client pong timed out

And eventually this:

[Warning] SocketProtocolError: Socket hung up

It appears to be reconnecting after the time out - but then just times out again. That's why I'm seeing several of these.

Is this library actively developed and tested?

elondon avatar Mar 01 '16 23:03 elondon

@elondon Yes this client out of date (that's what's causing the issue)... I asked @lihan if he can update it so stay tuned.

jondubois avatar Mar 02 '16 05:03 jondubois

@lihan [Warning] SocketProtocolError: Socket hung up is this issue fixed?

ricky1550 avatar May 29 '17 05:05 ricky1550

@lihan @elondon Please respond if this library is still supported by you.

ricky1550 avatar May 29 '17 12:05 ricky1550