Closed deskoh closed 4 years ago
I'm wondering if there should be a way to provide a custom serializer/deserializer. There is probably other cases where you want to convert things. This would also take care of #87
This can now be done in v1.2.0 and later by using a custom serializer/deserializer.
Events are currently serialized using
JSON.stringify
. SinceDate
values are not supported in JSON (see here), it will be converted tostring
. When received, the value will be converted to astring
when serialized. This will be 'lossy', in particular, milliseconds accuracy is lost.