mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-10 07:58:39 -05:00
Websocket Proxying
This commit is contained in:
@@ -288,6 +288,15 @@ app.UseExceptionHandler(_ => { }); // Global exception handler
|
||||
// Enable response compression EARLY in the pipeline
|
||||
app.UseResponseCompression();
|
||||
|
||||
// Enable WebSocket support
|
||||
app.UseWebSockets(new WebSocketOptions
|
||||
{
|
||||
KeepAliveInterval = TimeSpan.FromSeconds(120)
|
||||
});
|
||||
|
||||
// Add WebSocket proxy middleware (BEFORE routing)
|
||||
app.UseMiddleware<WebSocketProxyMiddleware>();
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseSwagger();
|
||||
|
||||
Reference in New Issue
Block a user