Adding session cache directly to web-conn (#4861)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
64a86bd32f
Коммит
c434e84114
@@ -145,6 +145,12 @@ func InvalidateCacheForUserSkipClusterSend(userId string) {
|
||||
}
|
||||
}
|
||||
|
||||
func InvalidateWebConnSessionCacheForUser(userId string) {
|
||||
if len(hubs) != 0 {
|
||||
GetHubForUserId(userId).InvalidateUser(userId)
|
||||
}
|
||||
}
|
||||
|
||||
func (h *Hub) Register(webConn *WebConn) {
|
||||
h.register <- webConn
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user