added websocketHost as global variable