|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package msggateway
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
context2 "context"
|
|
|
|
|
"errors"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
|
|
|
|
|
"net/http"
|
|
|
|
@ -197,6 +198,7 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
httpError(context, errs.ErrConnArgsErr)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
log.ZDebug(context2.Background(), "conn", "platformID", platformID)
|
|
|
|
|
err := tokenverify.WsVerifyToken(token, userID, platformID)
|
|
|
|
|
if err != nil {
|
|
|
|
|
httpError(context, err)
|
|
|
|
|