Barracuda Application Server C/C++ Reference
NO
|
WebSocket Server (WSS)
#include <WebSocketServer.h>
Public Member Functions | |
WSS (WSSCB *cb, SoDisp *disp, int startSize, int expandSize) | |
Create and initialize a WebSocket Server instance. More... | |
~WSS () | |
destructor. | |
int | upgrade (HttpRequest *req) |
Upgrades an HTTP server request to a persistent WebSocket connection. More... | |
int | connect (HttpConnection *con) |
Upgrades (morphs) an HTTP request to a persistent WebSocket connection. More... | |
int | write (const void *data, int len, bool isTxt) |
Write/send a WebSocket frame. More... | |
int | close (int statusCode=1000) |
Gracefully close the WebSocket connection by sending WebSocket status code N to the client prior to closing the active socket connection. More... | |
bool | isValid () |
Returns true if the WebSocket connection is valid. | |