Provides Node-RED nodes for running a WebSocket server with open/close event information. Version 0.0.9 wraps the built-in Node-RED WebSocket node and adds extra features: configurable ping/pong behavior (send ping, receive ping with timeout), ability to target specific clients via msg._session, and a dedicated node for connection open/close events. It is maintained on GitHub but has low release cadence. Key differentiators vs built-in: explicit control over ping, session-based messaging, and event nodes.
npm install node-red-contrib-websocket-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a basic WebSocket server node and client nodes for send/receive.
Use a clean path like '/ws' or '/my-websocket'.
Set 'Send ping interval' to a positive number (e.g., 30).
Use msg._session = {id: 'client123'} or msg._session = ['client1', 'client2'].Ensure input has property _session with an id (e.g., msg._session = {id: 'abc'}).Run 'npm install node-red-contrib-websocket-server' inside ~/.node-red (or your Node-RED userDir).
Set msg._session to an object with an id property, e.g., msg._session = {id: 'someClientId'}.Ensure Node-RED is running on the expected host and port, and the path matches exactly (case-sensitive).