anchor.diff:  
       ConnectOpts = secure_ssl_opts:expand(Host, SslOpts),
       {ok, Socket} = Transport:connect(binary_to_list(Host), Port, ConnectOpts, Timeout),
  -    self() ! upgrade_protocol,
  +    self() ! {upgrade_protocol, Host},
   
       session_manager:reuse_or_create_provider_session(
           SessionId, provider_outgoing, #user_identity{
  
positive.code: -type server_message() :: #server_message{}.
  -type message() :: client_message() | server_message().
  
  -define(PACKET_VALUE, 4).
  -define(DEFAULT_SOCKET_MODE,
      application:get_env(?APP_NAME, default_socket_mode, active_once)
  ).
  
negative.code: %%%
  %%% In case of errors during init, upgrading_protocol or performing_handshake
  %%% connection is immediately terminated.
  %%% On the other hand, when connection is in ready status, every kind of error
  %%% is logged, but only socket errors terminates it.
  %%% @end
  %%%-------------------------------------------------------------------
  