Zero memory allocation websocket routes

This commit is contained in:
2025-05-23 13:28:28 +02:00
parent 860606886e
commit 881c25551a
9 changed files with 87 additions and 50 deletions
+2 -1
View File
@@ -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