pubnub-0.1.0.0: PubNub Haskell SDK

Safe HaskellNone

Network.Pubnub

Documentation

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
 

newtype Timestamp Source

Constructors

Timestamp Integer 

time :: IO (Maybe Timestamp)Source

publish :: ToJSON a => PN -> Text -> a -> IO (Maybe PublishResponse)Source

hereNow :: PN -> Text -> IO (Maybe HereNow)Source

presence :: FromJSON b => PN -> Maybe UUID -> (b -> IO ()) -> IO (Async ())Source

history :: FromJSON b => PN -> Text -> HistoryOptions -> IO (Maybe (History b))Source

leave :: PN -> Text -> UUID -> IO ()Source

unsubscribe :: Async () -> IO ()Source