Skip to main content

Import the SDK

Browser compatibility

ChromeFirefoxSafariIEEdge
✔️✔️✔️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.

  1. Install the packages:

    bash
    npm install @nexconn/engine@latest @nexconn/chat@latest -S
  2. Import the modules:

    TypeScript
    import {
    NCEngine,
    DirectChannel,
    GroupChannel,
    OpenChannel,
    CommunityChannel,
    CommunitySubChannel,
    MessageType,
    TextMessageContent,
    Message,
    } from '@nexconn/chat';