WuKongIM Docs

Integration

Integrate WuKongIM from the perspective of an existing product system.

WuKongIM owns real-time connections, channel messaging, persistence, cluster routing, and online delivery. Your product service still owns accounts, authorization, business relationships, content policy, and final business actions.

Confirm the current security boundary first

The current v3 Beta app performs CONNECT negotiation and session encryption, but its default composition does not yet validate connections against stored tokens. Product HTTP routes also have no business-authentication middleware. Put these routes behind a trusted network or authenticated reverse proxy and complete connection identity enforcement before production.

Before choosing platform APIs, learn the shared vocabulary in WuKongIMSDK Core Concepts. Then choose your platform under WuKongIMSDK and follow its task sequence.

Minimum product loop

  1. The user signs in to your product service instead of proving product identity directly to WuKongIM.
  2. The product service assigns a stable UID, device identity, and short-lived credential.
  3. The client discovers a route and connects to the Gateway through an SDK or protocol implementation.
  4. A client or trusted product service sends messages and checks the protocol-level result.
  5. The product service receives asynchronous webhooks and places side effects on its own durable queue.
  6. After a disconnect, the client SDK reconnects and recovers messages; webhooks are not a client inbox.

Pre-production checklist

AreaWhat you must confirm
IdentityUIDs have one authority and untrusted clients cannot mint tokens
NetworkProduct HTTP routes are not exposed directly and Gateway ingress is controlled
AuthorizationRelationships, membership, allowlists, denylists, and content rules follow product policy
MessagesPayloads are versioned and senders retain client_msg_no
CallbacksThe receiver persists first, returns 200 second, and tolerates duplicates
OperationsQueue pressure, failures, retry exhaustion, and end-to-end latency are monitored

Begin with stable server boundaries and webhooks. Introduce Plugin Extensions only when a synchronous or post-commit hook genuinely needs to run near a node.

After implementation, use the Release Checks with your real clients, server configuration, networks, and rollback plan.

On this page