$ yarn add @atlassian/pubsub$ npm install @atlassian/pubsub --save
As a component developer
As a component developer, you should not instantiate a
PubSubClient, instead you should let the
product inject an instance in your component.
As a product developer
;;// Call join to join channels for the given context, for example for current conversations in StridepubSubClient.join;// Call leave to leave channels (when closing a conversation for example)pubSubClient.leave;
You should then make the pubSubClient available to components.