Skip to content

Custom (de)serializer support? #32

@cometkim

Description

@cometkim

I love that this library provides good platform compatibility and the ability to extend its transport. But the wire format is fixed to JSON.

I wonder if it can provide the ability to customize (de)serializer, or even the entire (De)evaluator implementation as well, for example:

declare interface Serializer;

newWebSocketRpcSession("wss://example.com/api", {
  serializer: myCustomSerializer,
});

To allow compacting or compressing wire messages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions