Copyright | (c) Will Sewell, 2015 |
---|---|
License | MIT |
Maintainer | [email protected] |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Data.Pusher
Description
You must create an instance of this datatype with your particular Pusher app credentials in order to run the main API functions.
- data Pusher = Pusher {}
- data Credentials = Credentials {}
- getPusher :: MonadIO m => Credentials -> m Pusher
- getPusherWithHost :: MonadIO m => Text -> Credentials -> m Pusher
- getPusherWithConnManager :: Manager -> Maybe Text -> Credentials -> Pusher
Documentation
All the required configuration needed to interact with the API.
Constructors
Pusher | |
Fields |
getPusher :: MonadIO m => Credentials -> m Pusher Source
Use this to get an instance Pusher. This will fill in the host and path automatically.
getPusherWithHost :: MonadIO m => Text -> Credentials -> m Pusher Source
Get a Pusher instance that uses a specific API endpoint.
getPusherWithConnManager :: Manager -> Maybe Text -> Credentials -> Pusher Source
Get a Pusher instance with a given connection manager. This can be useful if you want to share a connection with your application code.