Skip to main content

Data Structure Description

Channel information data structure:
Subscriber data structure:

Channel Information

Request Channel Information

Need to implement channel information data source Channel Information Data Source

Get Channel Information

Listen for Channel Information

WKSDK.shared().channelManager.fetchChannelInfo(channel) method will trigger this listener
Add listener:
Remove listener:

Complete Channel Information Example

Subscribers (Members)

Sync Channel Subscriber List

Need to implement sync channel subscriber data source Sync Channel Subscriber Data Source

Get Channel Subscriber List

Get My Subscriber Identity in Channel

Listen for Channel Subscriber Changes

Add listener:
Remove listener:

Complete Subscriber Management Example

Channel Operations

Channel Settings Management

Stream Messages (Suitable for ChatGPT)

Subscribe to Channel Stream Messages

Unsubscribe from Channel Stream Messages

Best Practices

1. Memory Management

2. Error Handling

Next Steps

Conversation Management

Learn how to manage conversation lists

Data Source Configuration

Configure channel data sources

Chat Management

Return to chat message management

Advanced Features

Explore advanced features and custom messages