mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
web: change order of LWS protocols
This commit is contained in:
parent
d73f5fa6b6
commit
9eeeb9493e
1 changed files with 8 additions and 8 deletions
16
lib/web.c
16
lib/web.c
|
@ -38,6 +38,14 @@ lws_callback_function websocket_protocol_cb;
|
|||
|
||||
/** List of libwebsockets protocols. */
|
||||
static struct lws_protocols protocols[] = {
|
||||
#ifdef WITH_WEBSOCKET
|
||||
{
|
||||
.name = "live",
|
||||
.callback = websocket_protocol_cb,
|
||||
.per_session_data_size = sizeof(struct websocket_connection),
|
||||
.rx_buffer_size = 0
|
||||
},
|
||||
#endif /* WITH_WEBSOCKET */
|
||||
#ifdef WITH_API
|
||||
{
|
||||
.name = "http-api",
|
||||
|
@ -66,14 +74,6 @@ static struct lws_protocols protocols[] = {
|
|||
.rx_buffer_size = 0
|
||||
},
|
||||
#endif
|
||||
#ifdef WITH_WEBSOCKET
|
||||
{
|
||||
.name = "live",
|
||||
.callback = websocket_protocol_cb,
|
||||
.per_session_data_size = sizeof(struct websocket_connection),
|
||||
.rx_buffer_size = 0
|
||||
},
|
||||
#endif /* WITH_WEBSOCKET */
|
||||
{ NULL /* terminator */ }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue