module

HqTrivia::Connection::Interface

Instance methods

connect(coordinator : Coordinator)

Connect to a show using the given coordinator

Source
on_client_ping
Source
on_message

Yields a Model::WebSocketMessage

Source
on_raw_message

Yields raw JSON to the block

Source
on_server_pong
Source
open?

True if connection is open, false otherwise

Source
run

Starts the connection after connecting

Source
send_message(message : String)

Sends the message to the connection

Source