Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Attributes | List of all members
ws_events Struct Reference

events Web Socket events types. More...

#include <ws.h>

Public Attributes

void(* onopen )(ws_cli_conn_t *client)
 On open event, called when a new client connects. More...
 
void(* onclose )(ws_cli_conn_t *client)
 On close event, called when a client disconnects. More...
 
void(* onmessage )(ws_cli_conn_t *client, const unsigned char *msg, uint64_t msg_size, int type)
 On message event, called when a client sends a text or binary message. More...
 

Detailed Description

events Web Socket events types.

Member Data Documentation

◆ onclose

void(* onclose(ws_cli_conn_t *client)

On close event, called when a client disconnects.

◆ onmessage

void(* onmessage(ws_cli_conn_t *client, const unsigned char *msg, uint64_t msg_size, int type)

On message event, called when a client sends a text or binary message.

◆ onopen

void(* onopen(ws_cli_conn_t *client)

On open event, called when a new client connects.


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