MessageSocket library
Classes
- MessageSocket
-
Packages data from a stream into messages, by wrapping messages with a prefixed length.
Note: I've added locks on sending and receiving, so message integrity should be safe, but you should still be aware of the potential confusion/mixups inherent to having multiple threads communicate over a single channel.
Functions
-
bigEndianBytesUint64(
Uint8List bytes) → int -
uint64BigEndianBytes(
int value) → Uint8List