anchor.diff:  -spec init(Req :: cowboy_req:req(), Opts :: any()) ->
       {ok | cowboy_websocket, cowboy_req:req(), #pre_handshake_state{}}.
   init(Req, [Translator]) ->
  -    case gs_server:authorize(Req) of
  +    try gs_server:authorize(Req) of
           {ok, Client, ConnectionInfo, NewReq} ->
               State = #pre_handshake_state{
                   client = Client,
  
positive.code:             ?error_stacktrace(
                  "Discarding GS message to client as "
                  "it cannot be encoded - ~p:~p~nMessage: ~p", [
                  Type, Message, Msg
              ]),
              {ok, State}
      end;
  
  
negative.code:     % Client as understood by gs_logic_plugin (opaque term to the gs handler)
      client :: gs_protocol:client(),
      % Arbitrary connection info from gs_logic_plugin (opaque term to the gs handler)
      connection_info :: gs_server:connection_info(),
      translator :: module()
  }).
  
  