host |
const char * |
The hostname or IP address of the server |
port |
int |
The port on the server |
use_ssl |
int |
Use SSL if this parameter is not equal to zero |
error_buffer |
char * |
Buffer to store an error message |
error_buffer_size |
size_t |
Size of the error message buffer including the NUL terminator |
path |
const char * |
The server path to connect to, for example /app if you want to connect to localhost/app |
origin |
const char * |
The value of the Origin HTTP header |
data_func |
mg_websocket_data_handler |
Callback which is used to process data coming back from the server |
close_func |
mg_websocket_close_handler |
Callback which is called when the connection is to be closed |
user_data |
void * |
User supplied argument |