PacketParser class

Constructors

PacketParser()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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

Static Methods

decodePacket(dynamic encodedPacket, dynamic binaryType) → dynamic
decodePayload(dynamic encodedPayload, dynamic binaryType) → dynamic
encodeBase64Packet(dynamic packet, dynamic callback) → dynamic
Encodes a packet with binary data in a base64 string
encodeBuffer(dynamic packet, dynamic supportsBinary, dynamic callback, {dynamic fromClient = false}) → dynamic
Encode Buffer data
encodePacket(Map packet, {dynamic supportsBinary, dynamic utf8encode = false, required dynamic callback(dynamic _), bool fromClient = false}) String?
encodePayload(List packets, {required dynamic callback(dynamic _)}) → dynamic
map(List ary, dynamic each(dynamic _, dynamic callback(dynamic msg)), dynamic done(dynamic results)) → dynamic
Async array map using after
mapBinary(dynamic data, dynamic binaryType) → dynamic

Constants

ERROR_PACKET → const Map<String, String>