Bourse.WS.ConnectionOwner.Supervisor (bourse v0.7.0)

Copy Markdown View Source

Temporary DynamicSupervisor for Bourse.WS.ConnectionOwner processes.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the connection-owner supervisor.

Starts a temporary owner holding zen_client at url.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(init_arg)

@spec start_link(term()) :: Supervisor.on_start()

Starts the connection-owner supervisor.

start_owner(url, zen_client)

@spec start_owner(String.t(), ZenWebsocket.Client.t()) ::
  {:ok, pid()} | {:error, term()}

Starts a temporary owner holding zen_client at url.