ChannelMessage (Google App Engine API for Java)

Class ChannelMessage

  • java.lang.Object

  • Deprecated. 
    This API has been deprecated.

    public final class ChannelMessage
    extends java.lang.Object
    Class that represents a channel message. ChannelMessages can be sent as outgoing messages or can be parsed as incoming messages by ChannelService.parseMessage(HttpServletRequest).
    • Constructor Summary

      Constructor and Description
      ChannelMessage(java.lang.String clientId, java.lang.String message)
      Constructor for a channel message.
    • Constructor Detail

      • ChannelMessage

        public ChannelMessage(java.lang.String clientId,
                              java.lang.String message)
        Constructor for a channel message.
        clientId - identifies the client that will receive this message. The client should be connected to the channel using a token created by ChannelService.CreateChannel, using the same client id. The client id must be fewer than 64 bytes when encoded to UTF-8.
        message - the message payload. The payload must be smaller than 32K when encoded to UTF-8.
    • Method Detail

      • getClientId

        public java.lang.String getClientId()
      • getMessage

        public java.lang.String getMessage()

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

App Engine standard environment for Java