server Web Socket server parameters More...
#include <ws.h>
Public Attributes | |
| const char * | host |
| Required hostname that the wsServer will bind to. More... | |
| uint16_t | port |
| Listening port. More... | |
| int | thread_loop |
| Whether if the ws_socket() should create a new thread and be non-blocking (1) or not (0). More... | |
| uint32_t | timeout_ms |
| Ping timeout in milliseconds. More... | |
| struct ws_events | evs |
| Server events. More... | |
| void * | context |
| Server context. More... | |
server Web Socket server parameters
| void* context |
Server context.
Provided by the user, can be accessed via ws_get_server_context from onopen.
| struct ws_events evs |
Server events.
| const char* host |
Required hostname that the wsServer will bind to.
| uint16_t port |
Listening port.
| int thread_loop |
Whether if the ws_socket() should create a new thread and be non-blocking (1) or not (0).
| uint32_t timeout_ms |
Ping timeout in milliseconds.
1.8.17