Skip to main content

Installation

The JS Client SDK is hosted on NPM under @onehop/client.

npm

Yarn

Initializing the SDK

Find your project ID on this page.
JSX

Subscribing to a unprotected channel

Unprotected channels allow anyone to connect as long as they know the channel id. You can learn more about types of channels on this page.

Send a message to a channel