Registry / messaging / kevoree-group-websocket

kevoree-group-websocket

JSON →
library3.0.0jsnpmunverified

A Kevoree group implementation that uses WebSocket protocol to transfer Kevoree models between distributed nodes. Part of the Kevoree IoT/cloud platform. Version 3.0.0 is stable but has no release cadence (updated infrequently). Key differentiator: enables real-time model synchronization via WebSocket, specific to Kevoree ecosystem. Requires Kevoree runtime and WebSocket server. Limited to Kevoree-compatible environments.

npm install kevoree-group-websocket
INSTALL
IMPORT
SIG · KEVOREE-GROUP-WEBS
K
kevoree-group-websocket
messagingjavascriptv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

KevoreeGroupWebSocket
import KevoreeGroupWebSocket from 'kevoree-group-websocket'
import { KevoreeGroupWebSocket } from 'kevoree-group-websocket'
Default export, not named. CommonJS: const KevoreeGroupWebSocket = require('kevoree-group-websocket').default
default
import KevoreeGroupWebSocket from 'kevoree-group-websocket'
const KevoreeGroupWebSocket = require('kevoree-group-websocket')
CJS users must use .default or set esModuleInterop
KevoreeGroupWebSocket
const KevoreeGroupWebSocket = require('kevoree-group-websocket').default
const KevoreeGroupWebSocket = require('kevoree-group-websocket')
Without .default, KevoreeGroupWebSocket will be undefined

Demo of how to import and instantiate the WebSocket group. Shows correct CJS require with .default.

const KevoreeGroupWebSocket = require('kevoree-group-websocket').default; const net = require('net'); // Create a simple WebSocket server (just for demo; real usage integrates with Kevoree) const server = new net.Server(); server.listen(9000, () => { console.log('WebSocket group ready'); }); // Example usage with a Kevoree node // const group = new KevoreeGroupWebSocket({ name: 'myGroup' }); // group.start(); console.log('KevoreeGroupWebSocket loaded:', typeof KevoreeGroupWebSocket);
Debug
Known issues
gotchaThe library is a default export. CommonJS require must use .default unless esModuleInterop is enabled.
fix
Use require('kevoree-group-websocket').default or set esModuleInterop in tsconfig.
affects: >=3.0.0
breakingVersion 3.0.0 switched to ESM-first with a default export. CJS users must update import pattern.
fix
Use dynamic import or require with .default.
affects: 3.0.0
deprecatedThis package is part of Kevoree ecosystem which is in maintenance mode. New developments should consider alternatives.
fix
Evaluate if Kevoree is still needed or migrate to a modern alternative.
affects: >=3.0.0
Errors
Common errors & fixes
TypeError: KevoreeGroupWebSocket is not a constructor
CommonJS require returns an object with default property instead of the constructor directly.
fix
Change to require('kevoree-group-websocket').default
Error: Cannot find module 'kevoree-group-websocket'
Package not installed or installed globally.
fix
Run npm install kevoree-group-websocket in your project directory.
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies
@kevoree/corerequiredRequired for Kevoree runtime integration and model management
wsrequiredWebSocket client library used to connect to WebSocket server
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
kevoree-group-websocket — npm install kevoree-group-websocket · libregistry