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

ws: Review pong behavior (remove no-op) #48

Merged
2 commits merged into from
Dec 1, 2015
Merged

Conversation

vanm
Copy link
Contributor

@vanm vanm commented Jun 12, 2015

Updated:

I noticed the @ws.pong is a no-op in the current slack-client version and thought we might need to call pong after a ping (manually). After looking at ws, that doesn't seem to be the case in the both latest version and old 0.4.31 versions of ws:

onping is called after a ping:
https://github.com/websockets/ws/blob/master/lib/Receiver.js#L645
within onping, pong is called automatically at the ws level:
https://github.com/websockets/ws/blob/master/lib/WebSocket.js#L810

Given the issues reported around disconnects / timeouts, I wanted to surface this for discussion. I think this code should be removed since it is a no-op.

@vanm vanm changed the title ws: on ping, call pong w/ data and dontFailWhenClosed option ws: Review pong behavior (remove no-op) Jun 12, 2015
ghost pushed a commit that referenced this pull request Dec 1, 2015
ws: Review pong behavior (remove no-op)
@ghost ghost merged commit 7e4a6b2 into slackapi:master Dec 1, 2015
This pull request was closed.
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.

1 participant