Releases: thoov/mock-socket
Releases · thoov/mock-socket
Min node v8
Revert node version change
Reverting the node change as that should be a major version bump
8.1.0
Fix cannot find name 'USVString' in Typescript
8.0.5 [CHORE] Version bump to 8.0.5 (#239)
More typescript improvements
8.0.3 [CHORE] Version bump to 8.0.3 (#234)
Typescript improvements
Typescript + Under the hood improvements
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');
});