danivelop / channel-web-sdk-loader

Official Channel Web SDK Loader

Home Page:https://channel-io.github.io/channel-web-sdk-loader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Official Channel Web SDK Loader

https://channel-io.github.io/channel-web-sdk-loader/

License:Apache License 2.0


Languages

Language:TypeScript 100.0%