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

Go to the source code of this file.

Data Structures

struct  HostPacket
struct  HostTransportContext
class  BrowserHostBinding

Functions

 EMSCRIPTEN_BINDINGS (ascii_chat_session_host)

Function Documentation

◆ EMSCRIPTEN_BINDINGS()

EMSCRIPTEN_BINDINGS ( ascii_chat_session_host )

Definition at line 173 of file session_host.cpp.

173 {
174 emscripten::class_<BrowserHostBinding>("BrowserHostBinding")
175 .constructor<>()
176 .function("valid", &BrowserHostBinding::valid)
177 .function("error", &BrowserHostBinding::error)
178 .function("close", &BrowserHostBinding::close)
179 .function("addClient", &BrowserHostBinding::addClient)
180 .function("removeClient", &BrowserHostBinding::removeClient)
181 .function("setLocalClient", &BrowserHostBinding::setLocalClient)
182 .function("render", &BrowserHostBinding::render)
183 .function("renderAudio", &BrowserHostBinding::renderAudio)
184 .function("drainPackets", &BrowserHostBinding::drainPackets)
185 .function("receive", &BrowserHostBinding::receive);
186}
int receive(uint32_t id, uint32_t type, ProtocolBytes packet)
void removeClient(uint32_t id)
int setLocalClient(uint32_t id)
emscripten::val drainPackets()

References BrowserHostBinding::addClient(), BrowserHostBinding::close(), BrowserHostBinding::drainPackets(), BrowserHostBinding::error(), BrowserHostBinding::receive(), BrowserHostBinding::removeClient(), BrowserHostBinding::render(), BrowserHostBinding::renderAudio(), BrowserHostBinding::setLocalClient(), and BrowserHostBinding::valid().