fast-ws-client

2.1.0 • Public • Published

Client for fastWS

npm Node version GitHub Action

Documents


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

Readme

Keywords

Package Sidebar

Install

npm i fast-ws-client

Weekly Downloads

4

Version

2.1.0

License

Apache-2.0

Unpacked Size

21 kB

Total Files

7

Last publish

Collaborators

  • hans00