Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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.
/*
* options: WebSocket.Server options
*/
var booth = Booth(options)
/* port */
var booth = Booth({ port: 9000 })
/*
* httpServer instance
* for using inside working http server
* or with unix domain socket
*/
var booth = Booth({ server })
booth.on('name', handler)
booth.on({ name: handler })
function handler (data, endpoint) { /* … */ }
/*
* ws_uri: string with ws or ws+unix uri
*/
Endpoint(ws_uri)
/* websocket */
Endpoint('ws://localhost:9000')
/* unix domain socket */
Endpoint('ws+unix://localhost:9000')
endpoint.on('name', handler)
endpoint.on({ name: handler })
function handler (data, endpoint) { /* … */ }
ISC. Copyright © 2019, Strider.
FAQs
Booth provides symmetric Event API over websocket or unix domain socket
The npm package booth receives a total of 56 weekly downloads. As such, booth popularity was classified as not popular.
We found that booth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.