I'm trying to do something like this, just before this line: https://github.com/vbmithr/ocaml-websocket/blob/master/lwt/wscat.ml#L27
...
let _ = send @@ Frame.create ~content:"some stuff here" () in
Lwt_io.printf "> %s\n> %!" fr.content
...
and I'm getting an End_of_file exception;
wasn't able to find anything within the documentation, or the code, that would help me to prevent that...
What I'm trying to do, in fact, is to have a periodic sender, that once at, let's say 10 seconds, will send some message to the server, and I imagine that send is used for that.
Any idea what am I missing here?
Thanks.
I'm trying to do something like this, just before this line: https://github.com/vbmithr/ocaml-websocket/blob/master/lwt/wscat.ml#L27
and I'm getting an
End_of_fileexception;wasn't able to find anything within the documentation, or the code, that would help me to prevent that...
What I'm trying to do, in fact, is to have a periodic sender, that once at, let's say 10 seconds, will send some message to the server, and I imagine that
sendis used for that.Any idea what am I missing here?
Thanks.