Socket
Book a DemoInstallSign in
Socket

fast-ws-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-ws-client

WebSocket client for fastWS

latest
Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • Protocol version check
  • Event driven message
  • Customizable serialize
  • Awaitable event response
  • Compatible previous protocol version

Keywords

WebSocket

FAQs

Package last updated on 12 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts