Sha256: 27615a5acd7f5c7bc2c7e00db6abc37f4d13495201f36f3372a3104de14872e0

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

module WebSocket
  module Handshake
    module Handler
      module Server75

        include Server

        private

        def header_line
          "HTTP/1.1 101 Web Socket Protocol Handshake"
        end

        def handshake_keys
          [
            ["Upgrade", "WebSocket"],
            ["Connection", "Upgrade"],
            ["WebSocket-Origin", @headers['origin']],
            ["WebSocket-Location", handshake_location]
          ]
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
websocket-1.0.1 lib/websocket/handshake/handler/server75.rb
websocket-1.0.0 lib/websocket/handshake/handler/server75.rb