Class FTW::WebSocket
In: lib/ftw/websocket.rb
lib/ftw/namespace.rb
lib/ftw/websocket.rb
lib/ftw/namespace.rb
Parent: Object

:nodoc:

Methods

connection=   connection=   each   each   handshake_ok?   handshake_ok?   new   new   publish   publish   receive   receive  

Included Modules

FTW::CRLF Cabin::Inspectable FTW::CRLF Cabin::Inspectable

Constants

TEXTFRAME = 0x0001   The frame identifier for a ‘text’ frame
WEBSOCKET_ACCEPT_UUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"   Search RFC6455 for this string and you will find its definitions. It is used in servers accepting websocket upgrades.
TEXTFRAME = 0x0001   The frame identifier for a ‘text’ frame
WEBSOCKET_ACCEPT_UUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"   Search RFC6455 for this string and you will find its definitions. It is used in servers accepting websocket upgrades.

Public Class methods

Creates a new websocket and fills in the given http request with any necessary settings.

Creates a new websocket and fills in the given http request with any necessary settings.

Public Instance methods

Set the connection for this websocket. This is usually invoked by FTW::Agent after the websocket upgrade and handshake have been successful.

You probably don‘t call this yourself.

Set the connection for this websocket. This is usually invoked by FTW::Agent after the websocket upgrade and handshake have been successful.

You probably don‘t call this yourself.

Iterate over each WebSocket message. This method will run forever unless you break from it.

The text payload of each message will be yielded to the block.

Iterate over each WebSocket message. This method will run forever unless you break from it.

The text payload of each message will be yielded to the block.

Is this Response acceptable for our WebSocket Upgrade request?

Is this Response acceptable for our WebSocket Upgrade request?

Publish a message text.

This will send a websocket text frame over the connection.

Publish a message text.

This will send a websocket text frame over the connection.

Receive a single payload

Receive a single payload

[Validate]