class Protocol::WebSocket::CloseFrame

Constants

FORMAT
OPCODE

Public Instance Methods

apply(connection) click to toggle source
# File lib/protocol/websocket/close_frame.rb, line 39
def apply(connection)
        connection.receive_close(self)
end
pack(code, reason) click to toggle source
Calls superclass method
# File lib/protocol/websocket/close_frame.rb, line 35
def pack(code, reason)
        super [code, reason].pack(FORMAT)
end
unpack() click to toggle source
Calls superclass method
# File lib/protocol/websocket/close_frame.rb, line 29
def unpack
        data = super
        
        return data.unpack(FORMAT)
end