diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-10-31 08:59:23 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-10-31 08:59:23 -0400 |
commit | 316b155a42a4d00fb835438ce7e0401a64e59add (patch) | |
tree | 6a64f05e948323ae7595971608d84a4420a08290 /api/web_hub.go | |
parent | ef363fd88ebb731dbb0470ad7cb5f50de0f3845c (diff) | |
download | chat-316b155a42a4d00fb835438ce7e0401a64e59add.tar.gz chat-316b155a42a4d00fb835438ce7e0401a64e59add.tar.bz2 chat-316b155a42a4d00fb835438ce7e0401a64e59add.zip |
PLT-3562 Switch websocket over to post-connect authentication (#4327)
* Switch websocket over to post-connect authentication
* Add ability to specify token in websocket js driver, add unit tests
* Temporarily disable client websocket tests until issues are resolved
* Minor refactoring and fix status test
* Add isAuthenticated method to WebConn and minor status updates
Diffstat (limited to 'api/web_hub.go')
-rw-r--r-- | api/web_hub.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/web_hub.go b/api/web_hub.go index 23c01eb1b..dfbdf3838 100644 --- a/api/web_hub.go +++ b/api/web_hub.go @@ -156,6 +156,10 @@ func (h *Hub) Start() { close(webCon.Send) } + if len(userId) == 0 { + continue + } + found := false for webCon := range h.connections { if userId == webCon.UserId { |