Official Smartsupp WebSocket SDK for JavaScript, version 1.2.2. Enables real-time communication with Smartsupp chat via socket.io. Key differentiator: official SDK with typed client creation, event-based messaging, and custom promise library support. Released on npm, TypeScript declarations included, compatible with browser and Node.js. Low release cadence.
npm install smartsupp-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a visitor client with account key, connects to Smartsupp, and listens for incoming chat messages.
Upgrade Node.js to version 12 or later.
Use promise returned by connect() instead of callback.
Always store the client instance and call disconnect() before re-connecting.
Refer to the SDK's TypeScript type definitions for exact event names.
Keep socket.io-client dependency locked to the version specified by the SDK's package.json.
Run 'npm install smartsupp-websocket' and use correct import: import { createVisitorClient } from 'smartsupp-websocket'Use named import: import { createVisitorClient } from 'smartsupp-websocket'Verify account key, ensure internet connection, check firewall/network restrictions.
Set a valid account key: { key: 'YOUR_SMARTSUPP_ACCOUNT_KEY' }