-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add heartbeat for the websocket server (#2404)
- Loading branch information
1 parent
0325b01
commit 1a7c827
Showing
4 changed files
with
91 additions
and
50 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
5 changes: 3 additions & 2 deletions
5
test/server/servers/__snapshots__/WebsocketServer.test.js.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`WebsocketServer server should recieve connection, send message, and close client 1`] = `"localhost:8131"`; | ||
exports[`WebsocketServer should recieve connection, send message, and close client 1`] = `"localhost:8131"`; | ||
|
||
exports[`WebsocketServer server should recieve connection, send message, and close client 2`] = ` | ||
exports[`WebsocketServer should recieve connection, send message, and close client 2`] = ` | ||
Array [ | ||
"open", | ||
"hello world", | ||
"ping", | ||
"close", | ||
] | ||
`; |