Class Skinny::Websocket
In: lib/skinny.rb
Parent: EventMachine::Connection

We need to be really careful not to throw an exception too high or we‘ll kill the server.

Methods

Included Modules

Callbacks Thin::Logging

Constants

MAX_BUFFER_LENGTH = 2 ** 32   4mb is almost too generous, imho.
GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
OPCODE_CONTINUATION = 0x00
OPCODE_TEXT = 0x01
OPCODE_BINARY = 0x02
OPCODE_CLOSE = 0x08
OPCODE_PING = 0x09
OPCODE_PONG = 0x0a

Attributes

env  [R] 
location  [R] 
origin  [R] 
protocol  [R] 
version  [R] 

Public Class methods

Create a new WebSocket from a Thin::Request environment

Public Instance methods

Finish the connection read for closing

Connection is now open

Return an async response — stops Thin doing anything with connection.

This is for post-hixie-76 versions only

Start the websocket connection

to_a()

Alias for response

Make sure we call the on_close callbacks when the connection disappears

[Validate]