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