SocketCluster / socketcluster-client-ios

Native iOS client for SocketCluster
MIT License
23 stars 8 forks source link

Client Pong timed out #4

Open rachelxj opened 8 years ago

rachelxj commented 8 years ago

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

lihan commented 8 years ago

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

elondon commented 8 years ago

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?

jondubois commented 8 years ago

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

ricky1550 commented 7 years ago

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

ricky1550 commented 7 years ago

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