-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add newly connected clients to this.clients list - update all previous instances to use this.clients - clear this.client list when _removeClients is called - update existing tests to use this.clients - add tests to verify that the list is cleared on close * Call _removeClients on server close * Setup listeners for ws server and clear this.clients when _removeClients called * Remove all factory listener events - call clientConnected and clientDisconnected on the factory directly - remove .on('error') handler for factory since this seems unnecessary * Call 'reject' on server.listen() if server receives 'error' event * Add tests for rejecting listen() based on 'error' event * Add 'error' event listener test * Pass protocol instance to clientConnected * Overwrite clientConnected and clientDisconnected methods - http protocol instance is based on the request, not on the connected client * Use JsonRpcServerProtocol instance in clientConnected and clientDisconnected methods * Update babel and jsdoc * Add tests for clientConnected and clientDisconnected methods * Update docs for clientConnected and clientDisconnected
- Loading branch information
Showing
15 changed files
with
1,690 additions
and
1,179 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.