class

HqTrivia::Connection::Hq

Inherits HqTrivia::Connection::Interface < Reference < Object

A connection that connects to the current shows websocket and streams messages to the bot.

Constructors

new(raw_messages_only : Bool = false)
Source

Instance methods

connect(coordinator : Coordinator)

Connects to the HQ websocket

Source
open?

Returns true if the connection is open, false otherwise

Source
ping

Pings the connection with the optional message

Source
run

Starts the connection, you must call #connect first

Source
send_message(message : String)

Sends the message to the connection, raises if the connection is not open

Source