class Protocol::WebSocket::TextFrame
Constants
- OPCODE
Public Instance Methods
apply(connection)
click to toggle source
# File lib/protocol/websocket/text_frame.rb, line 40 def apply(connection) connection.receive_text(self) end
data?()
click to toggle source
# File lib/protocol/websocket/text_frame.rb, line 28 def data? true end
pack(data)
click to toggle source
Calls superclass method
Protocol::WebSocket::Frame#pack
# File lib/protocol/websocket/text_frame.rb, line 36 def pack(data) super(data.b) end
unpack()
click to toggle source
Calls superclass method
Protocol::WebSocket::Frame#unpack
# File lib/protocol/websocket/text_frame.rb, line 32 def unpack super.force_encoding(Encoding::UTF_8) end