Concoction v0.1.0 Concoction.Gateway.Heartbeater View Source

Heartbeating with the Discord Gateway to prove we are alive.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Start the heartbeater with the milliseconds and connection PID passed.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(heartbeat_interval)

View Source

Specs

start_link(integer()) :: :ignore | {:error, any()} | {:ok, pid()}

Start the heartbeater with the milliseconds and connection PID passed.