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

Version Path
websocket-driver-0.6.3-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.6.3 lib/websocket/driver/hybi/message.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/websocket-driver-0.5.4/lib/websocket/driver/hybi/message.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/websocket-driver-0.5.4/lib/websocket/driver/hybi/message.rb
websocket-driver-0.6.2-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.6.2 lib/websocket/driver/hybi/message.rb
websocket-driver-0.6.1-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.6.1 lib/websocket/driver/hybi/message.rb
websocket-driver-0.6.0-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.6.0 lib/websocket/driver/hybi/message.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/websocket-driver-0.5.4/lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.4-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.4 lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.3-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.3 lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.2-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.2 lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.1-java lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.1 lib/websocket/driver/hybi/message.rb
websocket-driver-0.5.0 lib/websocket/driver/hybi/message.rb