Registry / messaging / cb-hyperion

cb-hyperion

JSON →
library1.11.1jsnpmunverified

Simple WebSocket server with custom publish/subscribe and point-to-point RPC protocol. Version 1.11.1, stable but low-activity. Offers built-in broadcast and method registration. Minimal dependencies, runs on io.js >=1.4.0. Differentiated by its simple PubSub and RPC patterns compared to raw WebSocket or Socket.IO.

npm install cb-hyperion
INSTALL
IMPORT
SIG · CB-HYPERION
C
cb-hyperion
messagingjavascriptv1.11.1
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.

Server
✓ import { Server } from 'cb-hyperion'
✗ const Server = require('cb-hyperion').Server
The package uses CommonJS, but if using ESM, named import works.
hyperion (default)
✓ const hyperion = require('cb-hyperion')
✗ import hyperion from 'cb-hyperion'
The package does not have a default export; use require or named import.
Server (require)
✓ const { Server } = require('cb-hyperion')
✗ const Server = require('cb-hyperion').server
Capitalization matters: 'Server' not 'server'.

Basic WebSocket server with broadcast and method registration using cb-hyperion.

const { Server } = require('cb-hyperion'); const server = new Server(8080); const allBroadcast = server.registerBroadcast('all'); server.registerMethod('join', function(ws){ allBroadcast.addTarget(ws); console.log('joined all'); }); server.registerMethod('send', function(ws, msg){ allBroadcast.send(msg); console.log('sending to all:'+msg); }); server.on('connection', function(ws) { console.log('client connected'); }); console.log('Server running on port 8080');
Debug
Known issues
deprecatedThe 'cb-hyperion' package appears unmaintained; no updates since 2016.
fix
Consider migrating to ws or socket.io for modern needs.
affects: >=1.0.0
gotchaThe package only works with io.js >=1.4.0, not modern Node.js.
fix
Use an older Node.js version or switch to a different package.
affects: >=1.0.0
gotchaNo TLS/SSL support; only plain WebSocket.
fix
Use a reverse proxy or a package like ws for secure connections.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'cb-hyperion'
Package not installed.
fix
Run 'npm install cb-hyperion' in your project directory.
TypeError: Server is not a constructor
Incorrect import; using default import instead of named.
fix
Use 'const { Server } = require('cb-hyperion');'
ReferenceError: WebSocket is not defined
Missing WebSocket implementation; cb-hyperion provides its own but expects a global.
fix
Ensure you are running in an environment with WebSocket support (Node.js with ws polyfill or browser).
Upgrade
Version history
1.11.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
cb-hyperion — npm install cb-hyperion · libregistry