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