View Source TMI.ConnectionServer (tmi.ex v0.7.0)

Handles connections to Twitch chat.

Summary

Functions

Returns a specification to start this module under a supervisor.

Invoked to handle continue instructions.

Invoked to handle all other messages.

Invoked when the server is started. start_link/3 will block until it returns.

Get the bot-specific module name.

Start the connection handler.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_continue(atom, state)

View Source

Invoked to handle continue instructions.

It is useful for performing work after initialization or for splitting the work in a callback in multiple steps, updating the process state along the way.

Invoked to handle all other messages.

For example calling Process.send_after(self(), :foo, 1000) would send :foo after one second, and we could match on that here.

Invoked when the server is started. start_link/3 will block until it returns.

@spec module_name(module()) :: module()

Get the bot-specific module name.

@spec start_link({module(), TMI.Conn.t()}) :: GenServer.on_start()

Start the connection handler.