diff --git a/core/connection.go b/core/connection.go index 667d314..b20a954 100644 --- a/core/connection.go +++ b/core/connection.go @@ -95,7 +95,7 @@ func (cs *connections) ClientConnected(conn *websocket.Conn, callby *wshandler.S 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) } diff --git a/core/friend.go b/core/friend.go index 6d2230b..78115c6 100644 --- a/core/friend.go +++ b/core/friend.go @@ -196,7 +196,7 @@ func makeFriends(ctx context.Context, so *Social, conns *connections) (*friends, }, 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 fs.moncen[meidx].publishState(callby.Accid, "")