FrameDecoder class final
Streaming frame decoder. Feed bytes as they arrive from the transport; pull out complete frames with drain. The decoder holds partial-frame state across calls so a fragmented socket read or websocket message boundary doesn't lose data.
Constructors
- FrameDecoder({int maxPayloadLength = defaultMaxRemoteFramePayloadLength})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxPayloadLength → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
drain(
) → Iterable< RemoteFrame> - Pull out every complete frame currently in the buffer. Partial frames stay buffered until the next feed.
-
feed(
List< int> bytes) → void - Add raw bytes from the transport.
-
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