HTTP.WebSocket.ArrayBuffer (http_web_socket v0.10.0)
View SourceExplicit binary frame payload wrapper for HTTP.WebSocket.send/2.
Plain Elixir binaries are also strings, so HTTP.WebSocket.send/2 treats a
bare binary as text. Wrap binary data with this struct when the WebSocket
frame opcode must be binary.
Summary
Types
@type t() :: %HTTP.WebSocket.ArrayBuffer{ byte_length: non_neg_integer(), data: binary() }