Class PingMessage

All Implemented Interfaces:
WebSocketMessage<ByteBuffer>

public final class PingMessage extends AbstractWebSocketMessage<ByteBuffer>
A WebSocket ping message.
Since:
4.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • PingMessage

      public PingMessage()
      Create a new ping message with an empty payload.
    • PingMessage

      public PingMessage(ByteBuffer payload)
      Create a new ping message with the given ByteBuffer payload.
      Parameters:
      payload - the non-null payload
  • Method Details