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
This release contains some under the hood improvements to better align itself with the spec. It also includes a typescript definition file, and bug fixes.
API breaking change:
constmockServer=newServer('ws://localhost:8080');mockServer.on('connection',socket=>{// the first argument is now a socket reference instead of the server instance.// this now allows you to send directly to the individual socket that connected.socket.send('test message 1');});