Message<T> class

Message class

Constructors

Message(String? subject, int sid, Uint8List byte, Client _client, {String? replyTo, T jsonDecoder(String)?, Header? header})
constructor

Properties

byte Uint8List
payload of data in byte
final
data → T
payload of data in byte
no setter
hashCode int
The hash code for this object.
no setterinherited
message header
final
jsonDecoder ↔ (T Function(String)?)
convert from json string to T for structure data
getter/setter pair
replyTo String?
subject and replyto
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sid int
subscriber id auto generate by client
final
string String
payload in string
no setter
subject String?
subject and replyto
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
respond(Uint8List data) bool
Respond to message
respondString(String str) bool
Respond to string message
toString() String
A string representation of this object.
inherited

Operators

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