From 0f1aeccde046649920d0a38fe4189ff718207c6a Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 10 Aug 2023 11:19:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A2=85=EB=A3=8C=EC=8B=9C=20wsconn.Close=20?= =?UTF-8?q?=ED=98=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wshandler/wshandler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wshandler/wshandler.go b/wshandler/wshandler.go index b26a10a..88aecbe 100644 --- a/wshandler/wshandler.go +++ b/wshandler/wshandler.go @@ -377,6 +377,7 @@ func (sh *subhandler) mainLoop(ctx context.Context) { } bt, _ := json.Marshal(roomnames) sh.callReceiver.OnClientMessageReceived(conn.sender, Disconnected, bytes.NewBuffer(bt)) + conn.Close() } }()