Provides WebSocket client and server components for the NoFlo flow-based programming environment. Version 0.4.0 (February 2018) supports Node.js and browsers, with basic authentication for Node.js clients. Components include OpenConnection, SendMessage, and ReceiveMessage. It uses the ws library on Node.js and the native WebSocket API in browsers. Last updated in 2018, with no further releases; primarily for legacy NoFlo projects.
npm install noflo-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to load noflo-websocket components and wire them in a NoFlo graph.
Update graph to wire a signal to the 'control' port to trigger send, or upgrade to 0.4.0 and adjust.
Consider migrating to a maintained alternative like 'ws' directly or 'socket.io' for active projects.
Use import with exact PascalCase names as exported.
Use webpack resolve alias or conditional require to avoid bundling ws in browser context.
npm install noflo-websocket --save
Ensure OpenConnection node is wired and connected, and provide a signal to SendMessage's 'control' port.
Use a valid WebSocket URL (e.g., 'wss://example.com/socket').