pusher-haskell-0.1.0.0: A Pusher.com client written in Haskell

CopyrightSee LICENSE file
LicenseBSD
MaintainerSid Raval <sidsraval@gmail.com>
Stabilityexperimental
Portabilitynon-portable (not tested)
Safe HaskellNone
LanguageHaskell2010

Network.Pusher.Event

Description

The Event module provides an simple interface for interacting with Pusher.com's event endpoints. This is used for trigger an event on one or more channels with arbitrary data.

Synopsis

Documentation

triggerEvent :: (Pusher, Channel, Event) -> IO String Source

triggerEvent (pusher, channel, event) sends an event to one channel for the given Pusher instance. The result is the response body from the Pusher server.

triggerMultiChannelEvent :: (Pusher, String, Event) -> IO String Source

triggerMultiChannelEvent (pusher, channels, event) sends an event to multiple channels for the given Pusher instance. The result is the response body from the Pusher server.