主权项 |
1. A messaging system for communicating with a client, comprising:
a processing unit of the messaging system; and a system memory of the messaging system, wherein the system memory comprises code configured to direct the processing unit to:
register, at the messaging system, the client to a notification service;receive, at the messaging system, a notification token from the client that identifies the client;create, at the messaging system, a client entity in response to receiving the notification token, wherein the client entity is maintained even when the client is not connected to the notification service and the messaging system, and wherein creating the client entity comprises binding the client to the client entity and sending, from the messaging system, the authentication token back to the client entity, wherein the client entity is to use the authentication token to identify the client entity to the messaging system for future communications;detect, at the messaging system, notification channel information used to communicate with the client when the client is not connected to the notification service based on the notification token;provide, from the messaging system, an authentication token to the client, wherein the authentication token is configured to enable the client to receive notifications from the messaging system instead of the notification service when not connected to the notification service;receive, at the messaging system, a command to retrieve messages queued at the messaging system; andprovide, from the messaging system, queued messages to the client in response to receiving the command. |