1
0
Fork 0
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:
Steffen Vogel 2017-08-22 12:12:49 +02:00
parent d73f5fa6b6
commit 9eeeb9493e

View file

@ -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 */ }
};