Use an animation to fill the screen with content area after login.
Use a dynamic host to open the websocket.

Remove the hardcoded url to localhost.