Mint.WebSocket.Extension.encode
You're seeing just the callback
encode
, go back to Mint.WebSocket.Extension module for more information.
Specs
encode(frame :: tuple(), state :: term()) :: {:ok, frame :: tuple(), state :: term()} | {:error, term()}
Invoked when encoding frames before sending them across the wire
Error tuples bubble up to Mint.WebSocket.encode/2
.