Skip to main content

Concept Explanation

What is a User?

A User is the basic entity in the WuKongIM system, representing an individual or application using the instant messaging service. Each user has a unique identifier and related attributes, serving as the subject for sending and receiving messages.

Why are Users Important?

  • Identity Identification: User ID is the key to uniquely identify a user in the system
  • Permission Foundation: All message sending and receiving permissions are based on user identity
  • Status Management: User online status determines the method and timing of message delivery

Relationship with Other Concepts

  • Message: Users are the senders and receivers of messages
  • Channel: Users communicate through channels; personal channel ID is the user ID
  • Conversation: User conversation list shows all chats the user participates in
  • Device: A user can log in and use the service on multiple devices

Core Structure

Users contain the following core attributes:

Device Type Identifiers

User Example

EasySDK Code Examples

User Initialization and Connection

User Status Management

WuKongIM focuses on message transmission; detailed user profiles (such as nicknames, avatars, etc.) are typically managed by the application layer.