| Copyright | (c) Joachim Fasting 2013 |
|---|---|
| License | MIT |
| Maintainer | joachifm@fastmail.fm |
| Stability | stable |
| Portability | unportable |
| Safe Haskell | None |
| Language | Haskell2010 |
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 () #