Skip to main content
Channel is an abstract concept in WuKongIM. Messages are first sent to channels, and channels deliver messages according to their configuration rules. Channels are divided into channel and channel details.
Need to implement channel information data source: Channel Information Data Source

Channel Information Management

Get Channel Information

Get channel information, first from memory, then from database if not available:

Force Refresh Channel Information

Get channel information from remote server:

Complete Usage Example

Event Listening

Channel Information Refresh Listener

key is the unique identifier for the listener, can be any string. The same key must be passed when adding and removing listeners

Channel Avatar Update Listener

Common Operations

Update Remark

Pin/Unpin Channel

Save Channel Information

WKChannel Data Structure

Channel Properties

Property Description

Best Practices

1. Channel Information Caching Strategy

2. Channel Status Management

Next Steps

Channel Member Management

Learn how to manage channel members

Conversation Management

Handle conversation lists and unread messages

Data Source Configuration

Configure channel data sources

Message Management

Return to message handling functionality