ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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 101 of file protocol.cpp.

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