I'm trying to get a websocket server working using the nopoll library
which is part of the RTOS SDK for the esp8266.
I am following the guide on the nopoll site, with code of form:
// create a listener to receive connections on port 1234
noPollConn * listener = nopoll_listener_new (ctx, "0.0.0.0", "1234");
if (! nopoll_conn_is_ok (listener)) {
// some error handling here
}
// now set a handler that will be called when a message (fragment or not) is received
nopoll_ctx_set_on_msg (ctx, listener_on_message, NULL);
// now call to wait for the loop to notify events
nopoll_loop_wait (ctx, 0);
But this does seem to work. I noticed that the websocket_demo provided with the
SDK has the server tests deleted. Is this becuase they dont work on the
ESP8266?
If it works does anyone have a basic example?
Thanks in advance for any help!
BR
Paul