mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +08:00
WsVerifyToken
This commit is contained in:
parent
aa8c250c61
commit
638d2d4282
@ -209,6 +209,7 @@ func (ws *WsServer) unregisterClient(client *Client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
defer log.ZInfo(context.Background(), "wsHandler", "remote addr", "url", r.URL.String())
|
||||||
connContext := newContext(w, r)
|
connContext := newContext(w, r)
|
||||||
if ws.onlineUserConnNum >= ws.wsMaxConnNum {
|
if ws.onlineUserConnNum >= ws.wsMaxConnNum {
|
||||||
httpError(connContext, errs.ErrConnOverMaxNumLimit)
|
httpError(connContext, errs.ErrConnOverMaxNumLimit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user