libmpd-0.10.0.1: 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 Source #

type MessageText = String Source #

# Subscribing to channels

subscribe :: ChannelName -> Command () Source #

unsubscribe :: ChannelName -> Command () Source #

channels :: Command [ChannelName] Source #

# Communicating with other clients

readMessages :: Command [(ChannelName, MessageText)] Source #

sendMessage :: ChannelName -> MessageText -> Command () Source #