Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect WebSocket to WhatsApp on close (probably with some random delay) #9

Closed
krombel opened this issue Sep 18, 2018 · 1 comment · Fixed by Rhymen/go-whatsapp#42

Comments

@krombel
Copy link
Contributor

krombel commented Sep 18, 2018

Currently I sometimes get the following log

[Sep 18, 2018 06:01:39] [User/@test22:server/DEBUG] JSON message: ["Stream","asleep"]                                                                                                                                                
[Sep 18, 2018 07:40:36] [User/@test22:server/ERROR] WhatsApp error: unexpected websocket close: websocket: close 1000 (normal)                                                                                                       
error writing to socket: websocket: close senterror writing to socket: websocket: close sent[...]

So the device falls to sleep and after some timeout WhatsApp seems to close the socket.
The bridge currently needs a restart until it works again

@krombel
Copy link
Contributor Author

krombel commented Sep 22, 2018

This got implemented upstream in Rhymen/go-whatsapp#42 and Rhymen/go-whatsapp#46
This issue can therefore be closed after this dep has been updated.

@tulir tulir closed this as completed in 3627ed7 Sep 22, 2018
tulir added a commit that referenced this issue May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant