It makes a lot more sense to start the websocket connection as soon as the session is loaded, rather than using an arbitrary delay time of five seconds.