Class: Protocol::WebSocket::BinaryMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/protocol/websocket/message.rb

Overview

Represents a binary message that can be sent or received over a WebSocket connection.

Instance Attribute Summary

Attributes inherited from Message

#The message buffer., #buffer

Instance Method Summary collapse

Methods inherited from Message

#==, #encoding, generate, #initialize, #parse, #size, #to_h, #to_str

Constructor Details

This class inherits a constructor from Protocol::WebSocket::Message

Instance Method Details

#send(connection, **options) ⇒ Object



71
72
73
# File 'lib/protocol/websocket/message.rb', line 71

def send(connection, **options)
  connection.send_binary(@buffer, **options)
end