Class: Protocol::WebSocket::TextMessage

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

Direct Known Subclasses

JSONMessage

Instance Attribute Summary

Attributes inherited from Message

#buffer

Instance Method Summary collapse

Methods inherited from Message

#==, #encoding, #initialize, #size, #to_str

Constructor Details

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

Instance Method Details

#send(connection, **options) ⇒ Object



36
37
38
# File 'lib/protocol/websocket/message.rb', line 36

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