Skip to content

Typescript + Under the hood improvements

Compare
Choose a tag to compare
@thoov thoov released this 05 Jul 19:48
· 140 commits to master since this release
3a8dfec

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:

const mockServer = new Server('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');
});