GreyCat WebSocket plugin enables remote read/write access to GreyCat graphs over WebSocket connections. Current stable version is 10.0.0. Provides a WSClient storage layer that integrates with GreyCat's GraphBuilder. Key differentiator: allows real-time graph interaction without local storage, enabling distributed applications. Releases are tied to GreyCat versioning; compatibility with major GreyCat versions is critical. Documentation is sparse; usage examples focus on initialization and basic CRUD operations.
npm install greycat-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a WebSocket server, creates a node, sets a property, and saves.
Update WSClient call to pass WebSocket URL as string directly: WSClient('ws://...') instead of previous object-based config.Always perform graph operations inside the connect callback or after awaiting connection.
Ensure correct import of Type constants from 'greycat' package.
Use async/await: await graph.connect();
Use WSClient as a function: WSClient('ws://...')
Or ensure named import: import { WSClient } from 'greycat-websocket';Install greycat: npm install greycat
Place graph.save inside the connect callback or use async/await.