WebSocketFrame class

Constructors

WebSocketFrame(OpCode opcode, {required Uint8List payload, bool mask = true})
WebSocketFrame.create(Uint8List data)

Properties

fin bool
是否最后一个分片
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
length int
getter/setter pair
mask bool
getter/setter pair
maskingKey Uint8List?
getter/setter pair
opcode OpCode
getter/setter pair
payload Uint8List
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valid bool
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rawBytes() Uint8List
rawTextBytes(List<int> payload) Uint8List
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

buffer BytesBuilder
粘包处理
getter/setter pair

Static Methods

isValid(int head) bool