WebSocketMessageAssembler class final

Joins fragments into messages and decodes text.

Throws WebSocketProtocolException 1007 on malformed text and 1009 on a message over maxMessageSize. Control frames pass straight through.

Constructors

WebSocketMessageAssembler({int? maxMessageSize})

Properties

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

Methods

add(WebSocketFrame frame) → WebSocketInbound?
The message frame completes, or null while one is still being fragmented.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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