mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
refactor: kick online user and remove token change to call auth rpc.
This commit is contained in:
parent
2fe48efee5
commit
a921efe62d
@ -74,18 +74,6 @@ type Client struct {
|
|||||||
token string
|
token string
|
||||||
}
|
}
|
||||||
|
|
||||||
// function not used
|
|
||||||
// func newClient(ctx *UserConnContext, conn LongConn, isCompress bool) *Client {
|
|
||||||
// return &Client{
|
|
||||||
// w: new(sync.Mutex),
|
|
||||||
// conn: conn,
|
|
||||||
// PlatformID: utils.StringToInt(ctx.GetPlatformID()),
|
|
||||||
// IsCompress: isCompress,
|
|
||||||
// UserID: ctx.GetUserID(),
|
|
||||||
// ctx: ctx,
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// ResetClient updates the client's state with new connection and context information.
|
// ResetClient updates the client's state with new connection and context information.
|
||||||
func (c *Client) ResetClient(ctx *UserConnContext, conn LongConn, longConnServer LongConnServer) {
|
func (c *Client) ResetClient(ctx *UserConnContext, conn LongConn, longConnServer LongConnServer) {
|
||||||
c.w = new(sync.Mutex)
|
c.w = new(sync.Mutex)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user