Added URI for websocket connection, cleaned up formatting.