Convert the request into a socket-compatible Uint8List.
Uint8List toIntList() { final request = [...intToUint8List(id, idWidth)]; if (data != null) request.addAll(data!); return Uint8List.fromList(request); }