graphql-ws
Advanced tools
Comparing version 5.14.0 to 5.14.1
@@ -76,2 +76,6 @@ "use strict"; | ||
return socket.close(common_1.CloseCode.Forbidden, 'Forbidden'); | ||
// we should acknowledge before send to avoid race conditions (like those exampled in https://github.com/enisdenjo/graphql-ws/issues/501) | ||
// even if the send fails/throws, the connection should be closed because its malfunctioning | ||
// @ts-expect-error: I can write | ||
ctx.acknowledged = true; | ||
await socket.send((0, common_1.stringifyMessage)((0, utils_1.isObject)(permittedOrPayload) | ||
@@ -86,4 +90,2 @@ ? { | ||
}, replacer)); | ||
// @ts-expect-error: I can write | ||
ctx.acknowledged = true; | ||
return; | ||
@@ -90,0 +92,0 @@ } |
{ | ||
"name": "graphql-ws", | ||
"version": "5.14.0", | ||
"version": "5.14.1", | ||
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,1 +1,3 @@ | ||
[![GraphQL Conf 2023](/GraphQLConf-2023-Banner.png)](https://graphql.org/conf/) | ||
<div align="center"> | ||
@@ -2,0 +4,0 @@ <br /> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
339242
5489
42