Skip to content

Commit

Permalink
✅ Fix sdk-utils test server shutdown (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wil Wilsman authored Dec 14, 2021
1 parent 79367af commit 0c1942c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-utils/test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async function start(args, log) {

wss.on('connection', ws => {
ws.on('message', data => {
if (data === 'CLOSE') return close();
if (data.toString() === 'CLOSE') return close();
let { id, event, args = [] } = JSON.parse(data);

Promise.resolve().then(async () => {
Expand Down

0 comments on commit 0c1942c

Please sign in to comment.