disconnect 시그니쳐 수정

This commit is contained in:
2023-11-11 21:43:17 +09:00
parent e10ecb6744
commit eda313d29e
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ func (cs *connections) ClientConnected(conn *websocket.Conn, callby *wshandler.S
cs.new(callby.Accid, conn) cs.new(callby.Accid, conn)
} }
func (cs *connections) ClientDisconnected(conn *websocket.Conn, callby *wshandler.Sender) { func (cs *connections) ClientDisconnected(msg string, callby *wshandler.Sender) {
cs.delete(callby.Accid) cs.delete(callby.Accid)
} }

View File

@ -196,7 +196,7 @@ func makeFriends(ctx context.Context, so *Social, conns *connections) (*friends,
}, nil }, nil
} }
func (fs *friends) ClientDisconnected(conn *websocket.Conn, callby *wshandler.Sender) { func (fs *friends) ClientDisconnected(msg string, callby *wshandler.Sender) {
// 로그 오프 상태를 알림 // 로그 오프 상태를 알림
meidx := callby.Accid[11] % monitoring_center_count meidx := callby.Accid[11] % monitoring_center_count
fs.moncen[meidx].publishState(callby.Accid, "") fs.moncen[meidx].publishState(callby.Accid, "")