graphql-ws
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -23,4 +23,4 @@ /// <reference types="node" /> | ||
private stopReceiving(); | ||
private onMessage({data}); | ||
private onMessage(data); | ||
private sendAck(seq); | ||
} |
@@ -47,3 +47,3 @@ "use strict"; | ||
else { | ||
this.socket.addEventListener('message', this.onMessage); | ||
this.socket.on('message', this.onMessage); | ||
} | ||
@@ -55,3 +55,3 @@ }); | ||
} | ||
onMessage({ data }) { | ||
onMessage(data) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -58,0 +58,0 @@ const buf = Buffer.from(data); |
@@ -77,3 +77,3 @@ "use strict"; | ||
return new Promise(resolve => { | ||
const onMessage = ({ data }) => { | ||
const onMessage = (data) => { | ||
const message = Buffer.from(data); | ||
@@ -92,3 +92,3 @@ let id, fileId, seq; | ||
}; | ||
this.socket.addEventListener('message', onMessage); | ||
this.socket.on('message', onMessage); | ||
}); | ||
@@ -95,0 +95,0 @@ }); |
{ | ||
"name": "graphql-ws", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "WebSocket transport for GraphQL", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
496062