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: protocols[0] must handle HTTP requests

This commit is contained in:
Steffen Vogel 2017-08-23 15:46:29 +02:00
parent 92b1ef24ea
commit cea8ad2877

View file

@ -37,14 +37,6 @@ 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",
@ -59,6 +51,14 @@ static struct lws_protocols protocols[] = {
.rx_buffer_size = 0
},
#endif /* WITH_API */
#ifdef WITH_WEBSOCKET
{
.name = "live",
.callback = websocket_protocol_cb,
.per_session_data_size = sizeof(struct websocket_connection),
.rx_buffer_size = 0
},
#endif /* WITH_WEBSOCKET */
#if 0 /* not supported yet */
{
.name = "log",