signalr_client
signalr_client copied to clipboard
DateTime/DateTimeOffset not supported???
At server, the following structure is serialized:
new Dictionary<string, object> {
{ "string", "Hello" },
{ "dateTime", DateTime.Now() },
};
On client, the response of that invocation is a Map<dynamic, dynamic> with:
{
"string": "Hello,
"dateTime": null,
}
The deserializer got a 0xd7 type, then a 0xff subtype (I guess -1 is considered 255), on this method:
dynamic _readExt(int length) {
final extType = _readUInt8();
final data = _readBuffer(length);
return _extDecoder?.decodeObject(extType, data);
}
At that time, _extDecoder was null, so null was returned.
I also have this problem. But its, as you say, a problem in the messagepack repo.