pubnub-1.1.0: PubNub Haskell SDK
Network.Pubnub
data PN Source
Constructors
Fields
defaultPN :: PNSource
newtype Timestamp Source
Instances
time :: IO (Maybe Timestamp)Source
publish :: ToJSON a => PN -> Text -> a -> IO (Maybe PublishResponse)Source
subscribe :: FromJSON b => PN -> SubscribeOptions b -> IO (Async ())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
getUuid :: IO UUIDSource
unsubscribe :: Async () -> IO ()Source
audit :: PN -> Auth -> IO (Maybe Value)Source
auth :: PN -> Text -> PNSource
grant :: PN -> Auth -> IO (Maybe Value)Source