       if Channel.presence?(channel) do
         PresenceSubscription.unsubscribe!(channel);
       end
-      Poxa.Registry.unsubscribe(channel)
+      Registry.unsubscribe(channel)
     else
       Logger.debug "Not subscribed to"
     end

  alias Poxa.PresenceSubscription
  alias Poxa.Channel
  alias Poxa.PusherEvent
  require Logger

  @doc """

      Logger.info "Already subscribed #{inspect self} on channel #{channel}"
    else
      Logger.info "Registering #{inspect self} to channel #{channel}"
      Registry.subscribe(channel)
    end
    {:ok, channel}
  end
