Sha256: f17ceaabfefc31e117c59310b936c69a17f682b9b69746188df12aea0293572a
Contents?: true
Size: 633 Bytes
Versions: 21
Compression:
Stored size: 633 Bytes
Contents
module WebSocket class Driver class Hybi class Message attr_accessor :rsv1, :rsv2, :rsv3, :opcode, :data def initialize @rsv1 = false @rsv2 = false @rsv3 = false @opcode = nil @data = Driver.encode('', :binary) end def <<(frame) @rsv1 ||= frame.rsv1 @rsv2 ||= frame.rsv2 @rsv3 ||= frame.rsv3 @opcode ||= frame.opcode @data << frame.payload end end end end end
Version data entries
21 entries across 21 versions & 2 rubygems