A websocket client in erlang