Network.MPD.Applicative.ClientToClient

libmpd-0.9.0.6: An MPD client library.

Copyright | (c) Joachim Fasting 2013
License | MIT
Maintainer | joachifm@fastmail.fm
Stability | stable
Portability | unportable
Safe Haskell | None
Language | Haskell2010

Network.MPD.Applicative.ClientToClient

Contents

- Types
- Subscribing to channels
- Communicating with other clients

Description

Client to client communication.

Synopsis

- 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 ()