View Source
MyspaceIPFS.Api.Network.PubSub
(Myspace IPFS v0.0.1)
MyspaceIPFS.Api.PubSub is where the pubsub commands of the IPFS API reside.
@spec ls() ::
{:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
any()}
@spec peers() ::
{:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
any()}
@spec pub(binary(), binary()) ::
{:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
any()}
@spec sub(binary()) ::
{:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
any()}