종료시 wsconn.Close 호출

This commit is contained in:
2023-08-10 11:19:02 +09:00
parent bdfc8082a2
commit 0f1aeccde0

View File

@ -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()
}
}()