-
Notifications
You must be signed in to change notification settings - Fork 28
connection is lost. #18
Comments
Will take a look on this. Do you have the code to reproduce the problem? |
|
What software did you use to analyze the websocket traffic? I think I am interested to use that one too. Your keep alive code is similar https://github.com/Rhymen/go-whatsapp/blob/c58e164e05b80aeaa6c96752c0ce5f8ec5174d40/write.go#L101 I am still not sure what causes this behavior. Let me ponder it for a moment. |
To fix this you must use the solution given by @chalyyzhu but also must set the ping timeout and close timeout to none on socket connection. WhatsApp dont use ping-pong to keep the connection alive.
Currently it's working for me. |
Solved with #21 |
can't keep alive conection..
The text was updated successfully, but these errors were encountered: