     shared_state: nil,
     # The current backoff (used to compute the next backoff when reconnecting
     # with exponential backoff)
-    current_backoff: nil,
+    backoff_current: nil,
   ]
 
   # TODO: right now, if backoff_max is less then 500ms (=
-  # @initial_backoff), we do weird stuff.
-  @initial_backoff 500
+  # @backoff_initial), we do weird stuff.
+  @backoff_initial 500
 
   @backoff_exponent 1.5
 

        # If this is the first time we connect, then we just retry after the
        # initial backoff (there's no need to calculate backoff and so on).
        if info == :init do
          {:backoff, @initial_backoff, %{state | current_backoff: @initial_backoff}}
        else
          next_backoff = calc_next_backoff(state.current_backoff, state.opts[:backoff_max])
          {:backoff, next_backoff, %{state | current_backoff: next_backoff}}
        end
      other ->
        other


    :ok = SharedState.disconnect_clients_and_stop(state.shared_state)

    state = %{state | socket: nil, backoff_current: @backoff_initial}
    {:backoff, @backoff_initial, state}
  end

  @doc false
