paracusia v0.2.11 Paracusia.MpdClient.Channels

Functions for client to client communication over channels.

See also: https://musicpd.org/doc/protocol/client_to_client.html

Link to this section Summary

Functions

Returns a list of all available channels

Sends a message to the given channel

Subscribe to the channel and create it, if it does not already exist

Unsubscribe from channel

Link to this section Functions

Returns a list of all available channels.

Link to this function

send_message(channel, message)
send_message(String.t(), String.t()) :: :ok | Paracusia.MpdTypes.mpd_error()

Sends a message to the given channel.

Link to this function

subscribe(channel)

Subscribe to the channel and create it, if it does not already exist.

channel is a name consisting of alphanumeric ASCII characters plus underscore, dash, dot and colon.

Link to this function

unsubscribe(channel)

Unsubscribe from channel.