graphql-ws
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -0,1 +1,8 @@ | ||
## [5.1.1](https://github.com/enisdenjo/graphql-ws/compare/v5.1.0...v5.1.1) (2021-06-09) | ||
### Bug Fixes | ||
* **server:** Return ping's payload through the response pong ([47730a9](https://github.com/enisdenjo/graphql-ws/commit/47730a9cc735b8e309656a3fb8b9e5b0e05a304a)), closes [#117](https://github.com/enisdenjo/graphql-ws/issues/117) | ||
# [5.1.0](https://github.com/enisdenjo/graphql-ws/compare/v5.0.0...v5.1.0) (2021-06-09) | ||
@@ -2,0 +9,0 @@ |
@@ -90,3 +90,8 @@ "use strict"; | ||
case common_1.MessageType.Ping: { | ||
await socket.send(common_1.stringifyMessage({ type: common_1.MessageType.Pong })); | ||
await socket.send(common_1.stringifyMessage(message.payload | ||
? { type: common_1.MessageType.Pong, payload: message.payload } | ||
: { | ||
type: common_1.MessageType.Pong, | ||
// payload is completely absent if not provided | ||
})); | ||
return; | ||
@@ -93,0 +98,0 @@ } |
{ | ||
"name": "graphql-ws", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
273390
3755