Class WebSocketPongMessage


  • public final class WebSocketPongMessage
    extends java.lang.Object
    Special message class that can be accepted by a @OnMessage method to listen to WebSocket pongs.
    Since:
    3.1
    • Constructor Summary

      Constructors 
      Constructor Description
      WebSocketPongMessage​(io.micronaut.core.io.buffer.ByteBuffer<?> content)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.core.io.buffer.ByteBuffer<?> getContent()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSocketPongMessage

        public WebSocketPongMessage​(@NonNull
                                    io.micronaut.core.io.buffer.ByteBuffer<?> content)
        Parameters:
        content - The content of the pong message.
    • Method Detail

      • getContent

        @NonNull
        public io.micronaut.core.io.buffer.ByteBuffer<?> getContent()
        Returns:
        The content of the pong message. This buffer may be released after the message handler has completed.