WebSocketProtocolException class final

A peer that broke the framing rules.

code is the close code to answer with: 1002 for a protocol error, 1007 for bad UTF-8, 1009 for a message over the size limit.

Implemented types

Constructors

WebSocketProtocolException(int code, String message)

Properties

code → 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