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

Represents an error in the WebSocket protocol

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

Summary

Types

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