Skip to main content
Channels cannot be created by frontend clients. You must use our server-side SDKs or API to create them. This reference assumes you have already set up the Hop server-side SDK.

Creating a Channel

create-channel.js

Creating a Channel with some Initial State

create-channel-with-state.js

Channel Types

Private channels allow you to individually grant tokens access to channels, either by calling a method from the server-side SDK or by responding to a webhook call when tokens try to subscribe, which you can set up on the Channels console page Public channels allow any leap token to join them, given they’re authenticated under your project and know the channel ID. Unprotected channels allow anyone to join them, even if they’re not authenticated with a token, given they know the channel ID