Copyright | (c) 2016 Michael Walker |
---|---|
License | MIT |
Maintainer | Michael Walker <mike@barrucadu.co.uk> |
Stability | experimental |
Portability | OverloadedStrings |
Safe Haskell | None |
Language | Haskell2010 |
General utility functions.
- fork :: PusherClient () -> PusherClient ThreadId
- makeURL :: Options -> (HostName, PortNumber, String)
- semver :: Version
- clusterName :: Cluster -> Text
- connectionEvent :: ConnectionState -> Text
Documentation
fork :: PusherClient () -> PusherClient ThreadId Source #
Fork a thread which will be killed when the connection is closed.
makeURL :: Options -> (HostName, PortNumber, String) Source #
The hostname, port, and path (including querystring) to connect to.
Three-component semver of the library. This corresponds to the first three components of the Haskell version, as the Pusher servers don't like a four-component version number.
clusterName :: Cluster -> Text Source #
The region name of a cluster.
connectionEvent :: ConnectionState -> Text Source #
The event name corresponding to a connection state. Initialized
has the "initialized" event for consistency, but this event is
never emitted.