1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

websocket: now supported in C++ web code

This commit is contained in:
Steffen Vogel 2018-12-02 03:08:34 +01:00
parent 40265ffca8
commit d6a0b27fc8

View file

@ -64,7 +64,7 @@ lws_protocols protocols[] = {
.rx_buffer_size = 0
},
#endif /* WITH_API */
#ifdef __LIBWEBSOCKETS_FOUND /** @todo: Port to C++ */
#ifdef LIBWEBSOCKETS_FOUND
{
.name = "live",
.callback = websocket_protocol_cb,
@ -166,7 +166,7 @@ void Web::worker()
lws_service(context, 100);
while (!writables.empty()) {
wsi = writables.pull();
wsi = writables.pop();
lws_callback_on_writable(wsi);
}