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:
parent
40265ffca8
commit
d6a0b27fc8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue