lib/em-websocket/framing03.rb in em-websocket-0.3.0 vs lib/em-websocket/framing03.rb in em-websocket-0.3.1

- old
+ new

@@ -144,10 +144,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("Unknown opcode") + FRAME_TYPES_INVERSE[opcode] || raise(DataError, "Unknown opcode") end def data_frame?(type) DATA_FRAMES.include?(type) end