WebsocketProtocolException class

An incoming frame violated RFC 6455.

closeCode is the websocket close code that should be sent to the peer when failing the connection (usually 1002 protocol error or 1009 message too big).

Implemented types

Constructors

WebsocketProtocolException(String message, [int closeCode = 1002])

Properties

closeCode → int
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited