Portability | unportable |
---|---|
Stability | stable |
Maintainer | joachifm@fastmail.fm |
Safe Haskell | None |
Network.MPD.Applicative.ClientToClient
Description
Client to client communication.
- type ChannelName = String
- type MessageText = String
- subscribe :: ChannelName -> Command ()
- unsubscribe :: ChannelName -> Command ()
- channels :: Command [ChannelName]
- readMessages :: Command [(ChannelName, MessageText)]
- sendMessage :: ChannelName -> MessageText -> Command ()
Types
type ChannelName = String
type MessageText = String
Subscribing to channels
subscribe :: ChannelName -> Command ()
unsubscribe :: ChannelName -> Command ()
channels :: Command [ChannelName]
Communicating with other clients
readMessages :: Command [(ChannelName, MessageText)]
sendMessage :: ChannelName -> MessageText -> Command ()