Skip to content

channel-io/channel-web-sdk-loader

Repository files navigation

Channel Talk

channel-web-sdk-loader

npm NPM npm minzip

The Official Channel SDK Loader for Web

Quick Links

Installation

NPM

npm install @channel.io/channel-web-sdk-loader

Yarn

yarn add @channel.io/channel-web-sdk-loader

PNPM

pnpm install @channel.io/channel-web-sdk-loader

Usage

⚠️ Note: This SDK is designed for client-side use only and should not be invoked on the server-side.

Step1: Import the ChannelService Module

import * as ChannelService from '@channel.io/channel-web-sdk-loader';

Step2: Load the Channel Web SDK

ChannelService.loadScript()

Step3: Initialize the Channel Web SDK

ChannelService.boot({
  pluginKey: 'YOUR_PLUGIN_KEY'
})

API Documentation

Playground