종료시 wsconn.Close 호출
This commit is contained in:
@ -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()
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user