Websocket Close 관련 status description 처리
This commit is contained in:
@@ -265,7 +265,9 @@ namespace Million.Manager
|
||||
finally
|
||||
{
|
||||
if (webSocket.State == WebSocketState.Open)
|
||||
await webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "WebSocket 연결 종료", CancellationToken.None);
|
||||
{
|
||||
await webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, webSocket.CloseStatusDescription, CancellationToken.None);
|
||||
}
|
||||
|
||||
webSocket.Dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user