Skip to content

Use polymorphic JSON serialization for WebSocket events #11

@Garados007

Description

@Garados007

System.Text.Json has introduced polymorphic JSON serialization which allows to serialize and deserialize objects without writing custom converter. This can make the user faced API simpler and easier to write new code. To get this working .NET 7.0 or higher is required.

Implementing this can break with old versions of the web server as this changes the handling of events completely.

More information: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism?pivots=dotnet-7-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions