Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Fix Pong payload #103

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

Fix Pong payload #103

wants to merge 2 commits into from

Conversation

lorenzodonini
Copy link

According to the Websocket RFC, a Pong frame sent in response to a Ping frame must have identical "Application data" as found in the message body of the Ping frame being replied to.

The current implementation always sends an empty Pong message. Problems arise when communicating with other implementations conforming to the RFC, which would discard an empty Pong message, in case the original Ping message wasn't empty.

This pull request contains a fix to this issue.

paresy pushed a commit to paresy/Simple-WebSocket-Server that referenced this pull request Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant