-
Notifications
You must be signed in to change notification settings - Fork 223
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
Closing connection #259
Comments
You can debug unencrypted ( |
I know I am getting close message with status code of 1000. I don't know why I am getting it though. |
As a quick hack, I added simple Now looking for best way to do this - I don't see way to do this via websocket crate settings - am I missing something, can this be handled by websocket crate or should I implement this myself? Battling a bit with my newness to Rust on best way to accomplish this.
|
I am using crate to connect ws client to a device server using socket.io which is able to switch to websockets. I am connecting to device using url
ws://ipaddress/socket.io/?EIO=3&transport=websocket
.This connects fine and I am getting messages from the device but after about 80 seconds it receives a Close notification which I am unable to track down. If I connect via browser to device and connect using socket.io library the connection stays alive. In browser code (using socket.io) I am not specifically sending and packets to the device so am not sure if I am getting Close message due to me not sending any data to the device (device with socket server) or whether Close is generated on websocket Client side due to too infrequent messages (server sends message roughly every 20 seconds).
Should I be sending periodic messages to the server? Or is it due to infrequent messages from server (I don't think it is this).
Appreciate any feedback ideas - busy digging into info....
The text was updated successfully, but these errors were encountered: