Sim SDK Web is a JavaScript/TypeScript SDK for integrating real-time instant messaging into web applications. It supports both SSE and WebSocket protocols, allowing developers to build chat features with flexible transport options. Current stable version is 1.2.30, released as needed. Key differentiators: dual protocol support (SSE and WebSocket) and TypeScript type definitions included. Compared to alternatives like Socket.IO, it is lighter and more focused on IM scenarios.
npm install sim-sdk-webNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes SDK with WebSocket protocol, connects, and sends a message.
Configure the SDK with the appropriate protocol based on server support.
Update to use new options object format: new SimSDK({ appKey, protocol, ... })Replace 'onDisconnect' with 'onConnectionStateChange' callback.
Run 'npm install sim-sdk-web' or check import statement.
Use ESM import: import SimSDK from 'sim-sdk-web'
Ensure .connect() promise resolves before calling sendMessage.
No dependency data recorded yet.