ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
protocol.cpp File Reference

Go to the source code of this file.

Functions

 EMSCRIPTEN_BINDINGS (ascii_chat_client_protocol)

Function Documentation

◆ EMSCRIPTEN_BINDINGS()

EMSCRIPTEN_BINDINGS ( ascii_chat_client_protocol )

Definition at line 99 of file protocol.cpp.

99 {
100 emscripten::register_type<ClientBytes>("ClientBytes", "Uint8Array");
101 emscripten::register_type<ClientPacketResult>("ClientPacketResult", "{ code: number; bytes: Uint8Array }");
102 emscripten::function("handleHandshake", &handle_handshake);
103 emscripten::function("receiveHandshake", &receive_handshake);
104 emscripten::function("cryptPacket", &crypt_packet);
105
106 emscripten::function("parsePacketJson", &parse_packet);
107 emscripten::function("serializePacket", &serialize_packet);
108}