Registry / messaging / bipbop-websocket

bipbop-websocket

JSON →
library1.1.0jsnpmunverified

A lightweight JavaScript client for connecting to the Bipbop WebSocket API. Version 1.1.0 provides a simple interface for real-time communication via WebSockets, focusing on ease of use and compatibility. It has no external dependencies and is distributed as CommonJS. Suitable for Node.js and browser environments with bundling. Compared to raw WebSocket, it offers a tailored API for Bipbop services.

npm install bipbop-websocket
INSTALL
IMPORT
SIG · BIPBOP-WEBSOCKET
B
bipbop-websocket
messagingjavascriptv1.1.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.

default (client)
const BipbopWebSocket = require('bipbop-websocket');
import BipbopWebSocket from 'bipbop-websocket';
Package is CommonJS only; ES module imports are not supported.

Shows how to install, connect to a Bipbop WebSocket endpoint, and handle basic events using the CommonJS API.

const BipbopWebSocket = require('bipbop-websocket'); const ws = new BipbopWebSocket('wss://api.bipbop.com/ws', { apiKey: process.env.API_KEY ?? '' }); ws.on('open', () => { console.log('Connected'); }); ws.on('message', (data) => { console.log('Received:', data); }); ws.on('error', (err) => { console.error('Error:', err); }); ws.send({ type: 'subscribe', channel: 'prices' }); setTimeout(() => ws.close(), 5000);
Debug
Known issues
gotchaThe package does not include any TypeScript type definitions.
fix
Create your own type declarations or use a .d.ts file via declare module.
affects: >=1.0.0
gotchaNo browser build is provided; consuming in browser requires a bundler (e.g., Webpack, Rollup).
fix
Bundle with a tool that can resolve CommonJS modules.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'bipbop-websocket'
Missing dependency installation.
fix
Run 'npm install bipbop-websocket --save'.
require is not defined
Using 'require' in an ES module environment or browser without a bundler.
fix
Use a bundler or convert to ES module with import (if available).
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources
bipbop-websocket — npm install bipbop-websocket · libregistry