-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dispatch better disconnect events (#39)
* Fix #38 by sending a proper close() status code See https://tools.ietf.org/html/rfc6455#section-7.4 * Add userInitiated boolean to the on-disconnected callback That lets us distinguish between an expected and unexpected disconnect. * Dispatch onDisconnected after a socket error A socket failure implies that the socket also died, so it makes sense to also dispatch a disconnected event. * Fix CR comments
- Loading branch information
Joe
authored
Mar 29, 2017
1 parent
5ee79d9
commit 98a919f
Showing
4 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters