Channel Lifecycle

Channels are ephemeral topics. The meaningful lifecycle for clients is the subscription on a Socket channel.

Channel events (SDK)

Listen on the channel object:

EventMeaning
subscribingSubscribe in flight
subscribedServer acknowledged subscribe
unsubscribingUnsubscribe in flight
unsubscribedServer acknowledged unsubscribe
paused / resumedLocal pause state
failedSubscription failure
const channel = socket.channels.get("demo");

channel.on("subscribed", () => console.log("ready"));
channel.on("failed", (payload) => console.error(payload));

await channel.subscribe((msg) => console.log(msg.data));

After reconnect

With autoResubscribe: true (default), the SDK resubscribes to channels that were active before disconnect. Wait for connected (or channel subscribed) before assuming delivery has resumed.

Server-side cleanup

Unused channels are managed by the platform. You do not archive or delete channels via the public API.