Skip to content

Support BSON in SignalR Core #9819

@HappyNomad

Description

@HappyNomad

I know about MessagePack but my scenario involves Asp.Net Core receiving raw BSON from MongoDB, and then forwarding it onward to a .NET client app. I don't want to needlessly translate the data from one binary format (BSON) to another (MessagePack).

Is sending BSON over SignalR Core currently achievable? If so then how and how involved? Otherwise, please consider adding BSON support, or enabling any binary format. I know MessagePack is better and all, but Mongo uses BSON and I use Mongo.

The alternative that comes to mind is to use web APIs since HTTP handles any binary format, and Asp.Net Core lets me configure output formatters. What about configuring formatters in SignalR Core? I couldn't find any Formatters options. I want to stick to using SignalR Core rather than web API, due to other benefits of the former.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions