     local?: false,
   ]
 
+  @remote_url_prefix Application.get_env(:wobserver, :remote_url_prefix, "")
+
   @spec call(map, endpoint :: String.t) :: String.t | :error
   defp call(%{host: host, port: port}, endpoint) do
     request =

  @spec api(remote_node :: map, path :: String.t) :: String.t | :error
  def api(remote_node, path) do
    remote_node
    |> call("/api" <> path)
  end

  @spec socket_proxy(atom | map) :: {pid, String.t} | {:error, String.t}


  def socket_proxy(%{name: name, host: host, port: port}) do
    connection =
      %URI{scheme: "ws", host: host, port: port, path: "#{@remote_url_prefix}/ws"}
      |> URI.to_string
      |> ClientProxy.connect

