fast-ws-client
v2.1.0
Published
WebSocket client for fastWS
Downloads
4
Readme
Client for fastWS
Usage
npm i fast-ws-client
const Client = require('fast-ws-client')
const client = new Client('ws://server/fast-ws', options)
client.on('connect', () => {
client.emit('event name', 'message')
})
client.on('event name', async () => {
await client.emit('wait for remote', 'message', true)
})
Feature
- [x] Protocol version check
- [x] Event driven message
- [x] Customizable serialize
- [x] Awaitable event response
- [ ] Compatible previous protocol version