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)
})
- Protocol version check
- Event driven message
- Customizable serialize
- Awaitable event response
- Compatible previous protocol version