This subclass is used for client-to-client communication over MPD
MphpD::channel(string $name) : Channel
This class is not intended for direct usage.
Use MphpD::channel()
instead to retrieve an instance of this class.
Channel::__construct(FloFaber\MphpD\MphpD $mphpd, string $name) : mixed
mixed
Subscribe to the channel.
Channel::subscribe() : bool
bool
bool true
on success or false
on failure.
Unsubscribe the channel.
Channel::unsubscribe() : bool
bool
bool true
on success or false
on failure.
Returns a list of the channel's messages.
Channel::read() : mixed
mixed
array|false array
containing the messages on success or false
on failure.
Send a message to the channel.
Channel::send(string $message) : bool
The message text.
bool
bool true
on success or false
on failure.