Browse Platform API
Platform API

After a user comes online

Copy

Synchronize presence after a user establishes an online connection.

HTTP request

POST {WEBHOOK_ADDRESS}/callbackAfterUserOnlineCommand

Request body

PropertyTypeDescription
callbackCommandstringcallbackAfterUserOnlineCommand.
operationIDstringOpenIM operation trace ID.
platformIDintClient platform ID.
platformstringClient platform name.
userIDstringUser ID.
seqintConnection sequence number.
isAppBackgroundbooleanWhether the client application is in the background.
connIDstringConnection ID.

Response

Return HTTP success promptly. The connection is already online and cannot be changed by this response.

Processing rules

  • Configuration key: afterUserOnline.
  • Process idempotently using userID, platformID, and connID.