Mint.WebSocket.Extension.decode

You're seeing just the callback decode, go back to Mint.WebSocket.Extension module for more information.

Specs

decode(frame :: tuple(), state :: term()) ::
  {:ok, frame :: tuple(), state :: term()} | {:error, term()}

Invoked when decoding frames after receiving them from the wire

Error tuples bubble up to Mint.WebSocket.decode/2.