View Source Mint.WebSocketError exception (MintWebSocket v1.0.3)

Represents an error in the WebSocket protocol

The Mint.WebSocketError struct is an exception, so it can be raised as any other exception.

Link to this section Summary

Link to this section Types

@type t() :: %Mint.WebSocketError{
  __exception__: true,
  reason:
    (:extended_connect_disabled
     | :payload_too_large
     | {:extension_not_negotiated, Mint.WebSocket.Extension.t()})
    | term()
}