diff --git a/example/app.js b/example/app.js index 1193887..5e19545 100644 --- a/example/app.js +++ b/example/app.js @@ -62,6 +62,7 @@ wss.on('connection', (ws) => { ws.on('close', () => { console.info('Lost a client') stream.end() + stream.destroy() }) })