Moved web socket connection after login check to access config settings for web socket server port.

This commit is contained in:
Martin Edenhofer 2015-05-10 22:30:48 +02:00
parent eb9d32e2b7
commit 94a3797f53

View file

@ -15,12 +15,12 @@ class App.Run extends App.Controller
# init collections # init collections
App.Collection.init() App.Collection.init()
# create web socket connection
App.WebSocket.connect()
# check if session already exists/try to get session data from server # check if session already exists/try to get session data from server
App.Auth.loginCheck() App.Auth.loginCheck()
# create web socket connection
App.WebSocket.connect()
# start navbars # start navbars
@setupWidget( 'Navigations', 'nav', @el ) @setupWidget( 'Navigations', 'nav', @el )