booth
Booth provides symmetric Event API over websocket or unix domain socket
Alike socket.io, but less powerful. Simple Event API, simple reconnect strategy,
symmetric usage via Endpoint()
on both client and server sides.
api
const booth = Booth(options)
const booth = Booth({ port: 9000 })
const booth = Booth({ server })
booth.on('name', handler)
booth.on({ name: handler })
function handler (data, endpoint) { }
Endpoint(ws_uri)
Endpoint('ws://localhost:9000')
Endpoint('ws+unix:///tmp/booth/unix.sock')
endpoint.on('name', handler)
endpoint.on({ name: handler })
function handler (data, endpoint) { }
license
ISC.
Copyright © 2024, Strider.