n8n community node (v1.7.2) that connects to any WebSocket server and triggers n8n workflows on incoming messages. Supports authentication via headers or query parameters (stored as n8n credentials), configurable auto-reconnect with interval and max attempts, extra query parameters, and sending an initial message on connect. Outputs events: open, message, close, error. Published as an n8n community node package; requires n8n-workflow peer dep. Active development on GitHub (santi648).
npm install n8n-nodes-websocket-ws-pruebaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows import of WebSocketTrigger class and note on how n8n triggers work.
Install as n8n community node via Settings > Community Nodes > Install.
Set a finite max attempts (e.g., 10) or use a webhook to stop the workflow after failure.
Reconfigure credentials in n8n with new names: 'WebSocket Header Auth' and 'WebSocket Query Auth'.
Install via n8n UI: Settings → Community Nodes → Install, enter 'n8n-nodes-websocket-ws-prueba'.
Ensure node is installed correctly and used inside an n8n workflow.