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

Fix disconnect via keepalive, invoke DispatchMessageQueue to handle received messages #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Tossrock
Copy link

Connections are automatically dropped after a timeout due to this bug in C#'s handling of websocket traffic. This should fix Issue 92.

Also actually invokes DispatchMessageQueue when receiving a message, so that OnMessage handlers actually get called. Seems that there was code commented out on L672 - L676 in WebSocket.cs without the correct replacement being added. This causes OnMessage events to behave as expected.

Fix keepalive interval, actually invoke the OnReceive code for messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client connection closes automatically after a while
1 participant