diff --git a/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs b/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs index 3e543008..72c8e658 100644 --- a/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs +++ b/src/AgileConfig.Server.Apisite/Websocket/WebsocketHandlerMiddleware.cs @@ -106,13 +106,11 @@ public async Task Invoke( { _logger.LogInformation("client {0} closed the websocket connection directly .", client.Id); await _websocketCollection.RemoveClient(client, WebSocketCloseStatus.Empty, null); - await context.Response.WriteAsync("500 closed"); } catch (Exception ex) { _logger.LogError(ex, "Handle websocket client {0} err .", client.Id); await _websocketCollection.RemoveClient(client, WebSocketCloseStatus.Empty, null); - await context.Response.WriteAsync("500 closed"); } } else