A Node.js library (v1.2.0, no recent updates) that connects to Cisco Spark's native WebSocket and emits events for message creation, membership creation, and room updates. Designed for bots behind firewalls that cannot receive inbound webhooks. Supports event callbacks and forwarding events to a configurable webhook URL. Works with BotKit. Note: Cisco Spark has been rebranded to Webex; this library targets the legacy API.
npm install ciscospark-websocket-eventsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize the library, connect to the WebSocket, and register an event callback to handle incoming events.
Migrate to the official Webex JS SDK (@webex/webex) which supports WebSocket events natively.
Implement manual reconnection logic by listening to the WebSocket 'close' event and calling connect() again.
Ensure the access token is a non-empty string. Test by using the Cisco Spark REST API beforehand.
Use an API key or IP whitelisting on the webhook endpoint to verify incoming requests.
Check internet connectivity and DNS settings. If behind a firewall, ensure outbound HTTPS to api.ciscospark.com is allowed.
Verify that accessToken is defined and valid. Add a check before calling sparkwebsocket.connect().
Only call setEventCallback inside the connect callback after ensuring no error. Check connection.
No dependency data recorded yet.