You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please share a minimal test case to reproduce the issue. I am unable to do it with the provided info. The following example works as expected.
import{WebSocket,WebSocketServer}from'ws';import{pack,unpack}from'msgpackr';constwss=newWebSocketServer({port: 0},function(){const{ port }=wss.address();constws=newWebSocket(`ws://127.0.0.1:${port}`);ws.on('open',function(){ws.send(pack('Hello'));});ws.on('message',function(buf){console.log(unpack(buf));ws.close();});});wss.on('connection',function(ws){ws.on('message',function(buf){ws.send(pack(unpack(buf)));});ws.on('close',function(){wss.close();});});
Is there an existing issue for this?
Description
See comment here #2229 (comment)
ws version
8.18.0
Node.js Version
latest
System
No response
Expected result
No response
Actual result
No response
Attachments
No response
The text was updated successfully, but these errors were encountered: