Mint.WebSocketError exception (MintWebSocket v1.0.5)

View Source

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

t()

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