An n8n community node (v1.0.2) that adds a WebSocket trigger with support for Bearer token and query parameter authentication and automatic reconnection. Designed for n8n workflow automation, it connects to any WebSocket endpoint and uses incoming messages as workflow triggers. The package has no regular release cadence yet but is actively maintained. Key differentiators: built-in auth and reconnect handling, unlike generic WebSocket clients. Peer dependency on n8n-workflow, requires Node >=18.10.
npm install n8n-nodes-websocket-ws-reconnectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the WebSocketTrigger class and access its description for n8n node registration.
npm install n8n-nodes-websocket-ws-reconnect
Update workflow node type to 'webSocketTrigger' (capital S).
Use 'reconnectDelay' instead of 'reconnectInterval'.
Fork the package or submit a PR to customize header name.
Ensure n8n-workflow is installed in the same node_modules (handled automatically if using n8n community node installer).
Run 'npm install n8n-workflow' in the n8n node_modules directory.
Use 'webSocketTrigger' (with capital S) as the node type.
Replace 'reconnectInterval' with 'reconnectDelay' in the node configuration.
Check that the Bearer token or query parameter is correctly set in the node credentials or parameters.