iso-websocket
implements the Websocket interface and is compatible with the browser, node.js and any other engine that implements basic Web APIs.
shouldRetry
option and node-retry
pnpm install iso-websocket
import { WS } from 'iso-websocket'
const ws = new WS('ws://localhost:8080')
ws.addEventListener('message', (e) => {
console.log(e.data)
})
ws.send('hello')
ws.close()
Check https://hugomrdias.github.io/iso-repo/modules/iso_websocket.html
MIT © Hugo Dias
Generated using TypeDoc