Beast Logo

PrevUpHomeNext

WebSocket

Creation
Making connections
Handshaking
Messages
Frames
Control Frames
Buffers
Asynchronous interface
The io_service
Thread Safety

The WebSocket Protocol enables two-way communication between a client running untrusted code in a controlled environment to a remote host that has opted-in to communications from that code. The protocol consists of an opening handshake followed by basic message framing, layered over TCP. The goal of this technology is to provide a mechanism for browser-based applications that need two-way communication with servers that does not rely on opening multiple HTTP connections.

Beast.WebSocket provides developers with a robust WebSocket implementation built on Boost.Asio with a consistent asynchronous model using a modern C++ approach.

The WebSocket protocol is described fully in rfc6455

[Note] Note

The following documentation assumes familiarity with both Boost.Asio and the WebSocket protocol specification described in rfc6455.


PrevUpHomeNext