View Source FLHook.Client (FLHook Client v2.0.0)
A client to connect to a FLHook socket.
Link to this section Summary
Functions
The child specification for a FLHook client.
Closes the connection.
Indicates whether the socket is connected.
Opens the connection.
Starts the FLHook client using the given config or options.
Starts the FLHook client using the given config and options.
Link to this section Types
@type client() :: GenServer.server()
Type representing a FLHook client process.
Link to this section Functions
@spec child_spec(term()) :: Supervisor.child_spec()
The child specification for a FLHook client.
@spec close(client()) :: :ok
Closes the connection.
Indicates whether the socket is connected.
@spec open(client()) :: :ok | {:error, Exception.t()}
Opens the connection.
@spec start_link(FLHook.Config.t() | Keyword.t()) :: GenServer.on_start()
Starts the FLHook client using the given config or options.
@spec start_link(FLHook.Config.t(), GenServer.options()) :: GenServer.on_start()
Starts the FLHook client using the given config and options.