void WebsocketBroadcastString(string data); // send a custom event over the websocket server
void WebsocketBroadcastJson(string data); // send a custom event over the websocket server, used for browser widgets
void WebsocketConnect(int connection = 0);
void WebsocketDisconnect(int connection = 0);
bool WebsocketIsConnected(int connection = 0);
void WebsocketSend(string data, int connection = 0);
void WebsocketSend(byte[] data, int connection = 0);
void WebsocketCustomServerStart(int connection = 0);
void WebsocketCustomServerStop(int connection = 0);
bool WebsocketCustomServerIsListening(int connection = 0);
void WebsocketCustomServerCloseAllSessions(int connection = 0);
void WebsocketCustomServerCloseSession(string sessionId, int connection = 0);
void WebsocketCustomServerBroadcast(string data, string sessionId, int connection = 0);
int WebsocketCustomServerGetConnectionByName(string name);
int BroadcastUdp(int port, object data);