Import the SDK
Browser compatibility
| Chrome | Firefox | Safari | IE | Edge |
|---|---|---|---|---|
| ✔️ | ✔️ | ✔️ | 10+ | ✔️ |
Import the SDK
tip
The Chat SDK provides full TypeScript support. We recommend TypeScript for better type safety and maintainability.
NPM (recommended)
info
The @nexconn/engine package provides the core capabilities used by the Chat SDK. Keep it on the same version as @nexconn/chat.
-
Install the packages:
bashnpm install @nexconn/engine@latest @nexconn/chat@latest -S -
Import the modules:
TypeScriptimport {
NCEngine,
DirectChannel,
GroupChannel,
OpenChannel,
CommunityChannel,
CommunitySubChannel,
MessageType,
TextMessageContent,
Message,
} from '@nexconn/chat';