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