Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_websocket_protocol Struct Reference

A websocket protocol implementation. More...

#include <http_websocket.h>

Data Fields

char * name
 Name of the protocol.
 
ast_websocket_pre_callback session_attempted
 Callback called when a new session is attempted. Optional.
 
ast_websocket_callback session_established
 Callback called when a new session is established. Mandatory.
 
unsigned int version
 Protocol version. Should be set to /ref AST_WEBSOCKET_PROTOCOL_VERSION.
 

Detailed Description

A websocket protocol implementation.

Users of the Websocket API can register themselves as a websocket protocol. See ast_websocket_add_protocol2 and ast_websocket_server_add_protocol2. Simpler implementations may use only ast_websocket_add_protocol and ast_websocket_server_add_protocol.

Since
13.5.0

Definition at line 113 of file http_websocket.h.


The documentation for this struct was generated from the following file: