class PingMessage < Message
- Inherits from
Message: #size, #==, #to_str, #encoding, #parse, #to_h, .generate
Represents a ping message that can be sent over a WebSocket connection.
Definitions
def send(connection)
Send this message as a ping frame over the given connection.
Signature
-
parameter
connectionConnection The WebSocket connection to send through.
Implementation
def send(connection)
connection.send_ping(@buffer)
end