WebSocket integration for the ALP framework, wrapping socket.io. Current stable version is 6.1.2, released under the ALP monorepo. Provides server-side Koa middleware and browser-side Ibex integration with configuration via YAML. Differentiator: tightly scoped to ALP ecosystem, relies on socket.io for transport. Minimal API surface; requires ALP-specific configuration pattern. Not intended for standalone use outside ALP projects.
npm install alp-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows server-side setup: create Koa app, apply config, attach WebSocket via websocket(), and handle a connection event.
Use import instead of require, or downgrade to 5.x if CJS required
Do not use 'new' when calling websocket(app); it's synchronous
Upgrade Node to >=10.13.0
Ensure config/common.yaml has websocket section with secure and port
Use import websocket from 'alp-websocket' (ESM) or check package version
npm install alp-websocket@6.1.2
Use const io = websocket(app) (no 'new')
Add websocket: { secure: true, port: 3001 } to common config