pubnub-0.1.0.0: PubNub Haskell SDK

Safe HaskellNone

Network.Pubnub.Types

Documentation

newtype Timestamp Source

Constructors

Timestamp Integer 

data PN Source

Constructors

PN 

Fields

origin :: Text
 
pub_key :: Text
 
sub_key :: Text
 
sec_key :: Text
 
channels :: [Text]
 
jsonp_callback :: Integer
 
time_token :: Timestamp
 
cipher_key :: ByteString
 
ctx :: Maybe AES
 
iv :: Maybe (IV AES)
 
ssl :: Bool
 

data SubscribeOptions a Source

Constructors

SubscribeOptions 

Fields

uid :: Maybe UUID
 
onMsg :: a -> IO ()
 
onConnect :: IO ()
 
onDisconnect :: IO ()
 
onError :: Maybe Int -> Maybe ByteString -> IO ()
 
onPresence :: Maybe (Presence -> IO ())
 
onReconnect :: IO ()
 
subTimeout :: Maybe Int
 
resumeOnReconnect :: Bool
 
windowing :: Maybe Integer
 

data SubscribeResponse a Source

Constructors

SubscribeResponse (a, Timestamp) 

Instances

Show a => Show (SubscribeResponse a) 
Generic (SubscribeResponse a) 
FromJSON a => FromJSON (SubscribeResponse a) 

data Presence Source

Constructors

Presence 

Fields

action :: Action
 
timestamp :: Integer
 
uuid :: UUID
 
presenceOccupancy :: Occupancy
 

data Action Source

Constructors

Join 
Leave 
Timeout 

Instances

data HereNow Source

Constructors

HereNow 

Fields

uuids :: [UUID]
 
herenowOccupancy :: Occupancy
 

data History a Source

Constructors

History [a] Integer Integer 

Instances

Show a => Show (History a) 
Generic (History a) 
FromJSON a => FromJSON (History a) 

data HistoryOption Source

Constructors

Start Integer 
End Integer 
Reverse Bool 
Count Integer