mirror of
https://github.com/AlexMacocian/Net.Sdk.Web.Extensions.git
synced 2026-07-15 13:39:29 +00:00
Zero memory allocation websocket routes
This commit is contained in:
@@ -76,8 +76,9 @@ Net.Sdk.Web.Extensions provides a streamlined implementation of WebSockets to be
|
||||
### Integration into `WebApplication`
|
||||
```C#
|
||||
var builder = WebApplication.CreateSlimBuilder(args);
|
||||
builder.WithWebSocketRoute<TWebSocketRoute>();
|
||||
var app = builder.Build();
|
||||
app.MapWebSocket<CustomRoute>("custom-route");
|
||||
app.UseWebSocketRoute<TWebSocketRoute>("custom-route");
|
||||
```
|
||||
|
||||
### Message mapping
|
||||
|
||||
Reference in New Issue
Block a user