You are viewing Skygear v1 Documentation.Switch to Skygear v0 Documentation
PubSub basics
Subscribing a channel
Publishing to a channel
To publish a message to the channel through cloud code, please refer to the Cloud Functions Guide: Calling Skygear API - Pubsub Events.
Unsubscribing a channel
Skygear will automatically re-connect on connection drop. Skygear will also re-subscribe all existing handler on connection restore. So in normal case, you don't need to re-subscribe all your handler on re-connect.