failed attempt at getting websocket client working