Class WebSocketPongMessage

java.lang.Object
io.micronaut.websocket.WebSocketPongMessage

public final class WebSocketPongMessage extends Object
Special message class that can be accepted by a @OnMessage method to listen to WebSocket pongs.
Since:
3.1
Author:
Jonas Konrad
  • Constructor Details

    • WebSocketPongMessage

      public WebSocketPongMessage(@NonNull @NonNull ByteBuffer<?> content)
      Parameters:
      content - The content of the pong message.
  • Method Details

    • getContent

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