Class EventMachine::WebSocket::Handshake
In: lib/em-websocket/handshake.rb
Parent: Object

Resposible for creating the server handshake response

Methods

Included Modules

EM::Deferrable

Attributes

parser  [R] 
protocol_version  [R] 

Public Class methods

Unfortunately drafts 75 & 76 require knowledge of whether the connection is being terminated as ws/wss in order to generate the correct handshake response

Public Instance methods

Returns the WebSocket upgrade headers as a hash.

Keys are strings, unmodified from the request.

The same as headers, except that the hash keys are downcased

Returns the WebSocket origin header if provided

Returns the request path (excluding any query params)

Returns the query params as a string foo=bar&baz=…

[Validate]