package brr
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Browser programming toolkit for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
brr-0.0.7.tbz
sha512=4b3d42eb6a32c1d6f1c5ef003f5311b5029156b31f6e51af098b695c769699e0304b66afd2dd574ecf1084e095bbbc4eac552daab083766cd81ed2f1d9897d51
doc/brr/Brr_io/Websocket/index.html
Module Brr_io.Websocket
Websocket objects.
See Web Sockets API.
XXX Add a bit of future convenience.
module Binary_type : sig ... endBinary type enum.
module Ready_state : sig ... endReady state enum.
The type for WebSocket objects.
create ~protocols url creates a new socket connected to url.
val as_target : t -> Brr.Ev.targetas_target s is s as an event target.
val binary_type : t -> Binary_type.tbinary_type s is the type of binary data received.
val set_binary_type : t -> Binary_type.t -> unitset_binary_type s t sets the binary_type of s to t.
Properties
val ready_state : t -> Ready_state.tready_state s is the state of the connection.
val buffered_amount : t -> intbuffered_amount s is the sent buffered amount of s.
extensions s are the extensions selected by the server.
Sending
val send_blob : t -> Brr.Blob.t -> unitsend_blob s d sends the binary content of d on s.
val send_array_buffer : t -> Brr.Tarray.Buffer.t -> unitsend_blob s d sends the binary content of d on s.
val send_tarray : t -> ('a, 'b) Brr.Tarray.t -> unitsend_blob s d sends the binary content of d on s.
Events
module Ev : sig ... endWebsocket events.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page