vbmithr / ocaml-websocket

Websocket library for OCaml
ISC License
163 stars 44 forks source link

websocket 0.9 with iocaml #21

Closed andrewray closed 9 years ago

andrewray commented 9 years ago

I've ported iocaml to webscoket 0.9 but I seem to be receiving invalid data from the websocket connection.

I wanted to try something a bit simpler to narrow down the issue so was playing with wscat, but I can't get that to work either. Perhaps I am driving the application wrong?

./wscat.native -s 8888
./wscat.native http://localhost:8888

Tracing the library a bit, the server is receiving 2 frames with masked set

    if masked then Lwt_io.eprintf "is masked\n" >> Lwt_io.read_into_exactly ic mask 0 4

but that's all. I'll try testing with websocket 0.8 to see if I can find anything else.