Optional stream pump that binds a WebSocket transport to an endpoint lifecycle. More...
#include <HttpWebSocket.h>
Public Member Functions | |
| Result | attach (const HttpWebSocketTransportView &transport, HttpWebSocketEndpointRole endpointRole) |
| void | detach () |
| Result | writeFrame (Span< const char > frame) |
| Result | flushPendingControlFrame () |
| bool | isAttached () const |
| HttpWebSocketEndpoint & | getEndpoint () |
| const HttpWebSocketEndpoint & | getEndpoint () const |
| void | onData (AsyncBufferView::ID bufferID) |
| void | onStreamEnd () |
Public Attributes | |
| Function< Result(HttpWebSocketOpcode, Span< char >, bool)> | onDataFramePayload |
| Function< void()> | onEnd |
| Function< void(Result)> | onError |
Optional stream pump that binds a WebSocket transport to an endpoint lifecycle.