1.1.7 • Published 5 months ago

@channel.io/channel-web-sdk-loader v1.1.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

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