anchor.diff:  websocket_terminate(Reason, _ConnState, State) ->
       io:format("Websocket closed in state ~p wih reason ~p~n",
                 [State, Reason]),
  +    erlang:unregister(?MODULE),
       ok.
   
  
positive.code:     {ok, State};
  websocket_handle({ping, _}, _ConnState, State) ->
    {reply, pong, State};
  websocket_handle({text, Msg}, _ConnState, State) ->
      io:format("Received msg ~p~n", [Msg]),
      {ok, State}.
  websocket_info(start, _ConnState, State) ->
      {reply, {text, <<"erlang message received">>}, State}.
  
negative.code:   erlang:register(?MODULE, Pid),
    {ok, Pid}.
  
  init([]) ->
      {reconnect, #{}}.
  
  