Adding session cache directly to web-conn (#4861)

Этот коммит содержится в:
Christopher Speller
2016-12-22 07:52:02 -05:00
коммит произвёл Joram Wilander
родитель 64a86bd32f
Коммит c434e84114
4 изменённых файлов: 34 добавлений и 15 удалений

Просмотреть файл

@@ -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