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

decodeBase64Packet(String msg, String binaryType) → dynamic
decodePacket(dynamic data, {dynamic binaryType, required bool utf8decode}) → dynamic
decodePayload(dynamic data, {bool binaryType = false, required dynamic callback(dynamic err, [dynamic foo, dynamic bar])}) → dynamic
Decodes data when a payload is maybe expected. Possible binary contents are decoded from their base64 representation
decodePayloadAsBinary(List<int> data, {bool? binaryType, required dynamic callback(dynamic err, [dynamic foo, dynamic bar])}) → dynamic
encodeBase64Packet(dynamic packet, dynamic callback) → dynamic
encodeBuffer(dynamic packet, dynamic supportsBinary, dynamic callback, {dynamic fromClient = false}) → dynamic
encodeOneBinaryPacket(dynamic p, dynamic doneCallback(dynamic _)) → dynamic
encodePacket(Map packet, {dynamic supportsBinary, dynamic utf8encode = false, required dynamic callback(dynamic t), bool fromClient = false}) String?
encodePayload(List packets, {bool supportsBinary = false, required dynamic callback(dynamic t)}) → dynamic
encodePayloadAsBinary(List packets, dynamic callback(dynamic _)) → dynamic
hasBinary(List packets) → dynamic
map(List ary, dynamic each(dynamic _, dynamic callback(dynamic msg)), dynamic done(dynamic results)) → dynamic
stringToBuffer(String string) List<int>

Constants

error → const Map<String, String>