pusher-http-haskell-0.3.0.0: Haskell client library for the Pusher HTTP API

Copyright(c) Will Sewell, 2015
LicenseMIT
Maintainerme@willsewell.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.Pusher.Protocol

Description

Types representing the JSON format of Pusher messages.

There are also types for query string parameters.

Synopsis

Documentation

data Channel Source

The channel name (not including the channel type prefix) and its type.

Constructors

Channel 

data ChannelInfo Source

The possible returned channel attributes when multiple when multiple channels are queried.

Constructors

ChannelInfo 

newtype ChannelInfoQuery Source

A set of requested ChannelInfoAttributes.

newtype ChannelsInfo Source

A map of channels to their ChannelInfo. The result of querying channel info from multuple channels.

newtype ChannelsInfoQuery Source

A set of requested ChannelsInfoAttributes.

data ChannelsInfoAttributes Source

Enumeration of the attributes that can be queried about multiple channels.

Constructors

ChannelsUserCount 

data User Source

The data about a user returned when querying for users in a presence channel.

Constructors

User 

Fields

userID :: Text
 

newtype Users Source

A list of users returned by querying for users in a presence channel.

Constructors

Users [User] 

parseChannel :: Text -> Channel Source

Convert string representation, e.g. private-chan into the datatype

toURLParam :: ToURLParam a => a -> Text Source

Convert the data into a querystring parameter value.