glock v0.1.0 API Reference
Modules
Glock is a simple websocket client application based on the Gun HTTP/HTTP2/Websocket Erlang library.
Defines the glock connection struct that serves as the configuration state of an initialized glock process.
Defines the genserver that starts and manages the underlying gun process. The glock socket is configured to trap exits and monitor the gun connection to the remote server. In the event of failure, glock establishes a new http connection to the server if possible immediately attempts to re-upgrade to a websocket connection.
Implements a Glock websocket connection as an Elixir Stream resource, returning messages as they are received until the connection is terminated, either by the remote websocket server or by exiting the Glock process.