Skip to content

End_of_file exception when doing send #92

Open
@alinpopa

Description

@alinpopa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions