Registry / messaging / konversi

konversi

JSON →
library1.0.0jsnpmunverified

WebSocket chat server built on socket.io and restify. Version 1.0.0, last updated 2016. Designed to provide a scalable chat service out-of-the-box with minimal configuration. Features plugin system, configurable namespaces, and socket routers. Client-side module still in planning. Requires Node >=6.3.1. No recent maintenance or updates.

npm install konversi
INSTALL
IMPORT
SIG · KONVERSI
K
konversi
messagingjavascriptv1.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.

ChatServer
const ChatServer = require('konversi').ChatServer;
import { ChatServer } from 'konversi';
CommonJS only; no ESM support. Use require().
Namespace
const Namespace = require('konversi').Namespace;
import Namespace from 'konversi';
Access via require, not default import.
SocketRouter
const SocketRouter = require('konversi').SocketRouter;
const { SocketRouter } = require('konversi');
Named export via require is correct; object destructuring works.
config
const config = require('konversi').config;
import { config } from 'konversi';
config is a module, not a class. Access via require.

Demonstrates global CLI usage and programmatic server setup with client connection example.

// Install globally: npm install -g konversi // Then run with config file: // konversi -c /path/to/config/file.json // OR programmatically (CommonJS): const ChatServer = require('konversi').ChatServer; const server = new ChatServer({ host: '0.0.0.0', port: 80, path: '/chat', environment: 'dev' }); server.start(); // Client side (using socket.io): // var socket = io('http://localhost', { path: '/chat' }); // socket.emit('rooms:handshake', Date.now(), null, 'userID=ClientName'); // socket.on('rooms:handshake', function() { // socket.emit('rooms:join', Date.now(), 'my-room-id', 'my-name'); // });
Debug
Known issues
gotchaClient-side module is not yet available; only server-side SDK is functional.
fix
Use socket.io client directly with the events documented in README.
affects: >=1.0.0
deprecatedPackage has not been updated since 2016; no support for modern Node.js or ESM.
fix
Consider alternative like socket.io with custom room management.
affects: >=1.0.0
breakingHandshake event 'rooms:handshake' must be emitted before any room operations; missing handshake causes silent failures.
fix
Always emit 'rooms:handshake' with userID parameter before 'rooms:join'.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'konversi'
Missing global install or local dependency.
fix
Run `npm install -g konversi` or `npm install konversi --save` in your project.
TypeError: ChatServer is not a constructor
Using wrong import style (ESM import instead of require).
fix
Use `const ChatServer = require('konversi').ChatServer;`
Error: listen EADDRINUSE :::80
Default port 80 is already in use.
fix
Configure a different port in config file or pass to constructor.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
socket.iorequiredCore WebSocket communication
restifyrequiredHTTP server foundation for plugins
Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
konversi — npm install konversi · libregistry