pusher-ws-0.1.0.0: Implementation of the Pusher WebSocket protocol

Copyright(c) 2016 Michael Walker
LicenseMIT
MaintainerMichael Walker <mike@barrucadu.co.uk>
Stabilityexperimental
PortabilityOverloadedStrings
Safe HaskellNone
LanguageHaskell2010

Network.Pusher.WebSockets.Util

Description

General utility functions.

Synopsis

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.

semver :: Version Source

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.