Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Websocket
SourceContent_reassembler
can process fragmented content from websocket frames and reassemble fragmented content into a contiguous buffer.
val create :
?opcode:[ `Text | `Binary ] ->
role:Websocket_role.t ->
Async.Reader.t ->
Async.Writer.t ->
t
val close_finished :
t ->
(Connection_close_reason.t * string * Core.Info.t option) Async.Deferred.t
val monitor_pongs :
?time_source:Async.Time_source.t ->
ping_every:Core.Time_ns.Span.t ->
concerning_pong_response_delay:Core.Time_ns.Span.t ->
on_concerning_pong_response_delay:(unit -> unit) ->
t ->
unit
Listen for pongs frames, and report when it has been too long since the last pong frame. Since pong frames don't typically arrive unsolicited (though it is legal if they do), we send ping frames at the specified interval.