Interface PushNotificationRpc
public interface PushNotificationRpc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RpcSerializerA bespoke serializer for this interface, used on both the client and gateway ends in place of the general-purposeProtoRpcSerializer. -
Method Summary
Modifier and TypeMethodDescriptionDrains the gateway's pending push notification queue for the calling session and returns it as aWebsocketProtoMessage.PushNotificationsenvelope - identical to what would have been sent over the WebSocket - so the caller can feed it through the existing dispatch path unchanged.
-
Field Details
-
SERIALIZER
A bespoke serializer for this interface, used on both the client and gateway ends in place of the general-purposeProtoRpcSerializer. The single method takes no parameters and returns aWebsocketProtoMessage.PushNotificationsmessage, so the contract reduces to reading/writing that message directly via its own Protobuf codec.
-
-
Method Details
-
pullPendingNotifications
WebsocketProtoMessage.PushNotifications pullPendingNotifications()Drains the gateway's pending push notification queue for the calling session and returns it as aWebsocketProtoMessage.PushNotificationsenvelope - identical to what would have been sent over the WebSocket - so the caller can feed it through the existing dispatch path unchanged.- Returns:
- the pending
WebsocketProtoMessage.PushNotificationsenvelope; an empty envelope if nothing is pending.
-