dotnet / dotnet/aspnetcore

[SignalR] Allow Pre-serialized data in order to avoid duplicated serialization

Open
#22,465 7 comments 2 reactions 0 assignees View on GitHub
affected-very-few area-signalr enhancement severity-nice-to-have
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is your feature request related to a problem? Please describe.
It seems that currently is not possible to send to signalR clients directly a JSON string or even JSON byte encoded. That in some systems could lead to duplicated serialization and therefore degradation of performance.

### Describe the solution you'd like
I would like to be able to send a JSON string or JSON byte encoded directly to SignalR Clients
### Additional context
* I have tried to use `ArraySegment` as described here https://github.com/SignalR/SignalR/issues/1546, but with no luck
* Seems that it was requested before here https://github.com/dotnet/aspnetcore/issues/5339

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.