I compile the lwt example and run it with
./a.out -s -loglevel 3 http://127.0.0.1:8888
From the browser (Firefox) I run
var ws = new WebSocket("ws://127.0.0.1:8888");
The browser fails with
Firefox can’t establish a connection to the server at ws://127.0.0.1:8888/.
and the server with
Fatal error: exception Websocket.Protocol_error("Bad headers")
Any ideas what's wrong?