Set of websocket client functions in Erlang