lib/em-websocket/framing07.rb in em-websocket-0.4.0 vs lib/em-websocket/framing07.rb in em-websocket-0.5.0

- old
+ new

@@ -5,10 +5,11 @@ module Framing07 def initialize_framing @data = MaskedString.new @application_data_buffer = '' # Used for MORE frames + @frame_type = nil end def process_data(newdata) error = false @@ -160,10 +161,10 @@ def type_to_opcode(frame_type) FRAME_TYPES[frame_type] || raise("Unknown frame type") end def opcode_to_type(opcode) - FRAME_TYPES_INVERSE[opcode] || raise(WSProtocolError, "Unknown opcode") + FRAME_TYPES_INVERSE[opcode] || raise(WSProtocolError, "Unknown opcode #{opcode}") end def data_frame?(type) DATA_FRAMES.include?(type) end