module HqTrivia::Connection::Interface
Direct including types
Defined in:
hqtrivia/connection/interface.crInstance Method Summary
-
#connect(coordinator : Coordinator)
Connect to a show using the given coordinator
- #on_client_ping(&block : String -> )
-
#on_message(&block : HqTrivia::Model::WebSocketMessage -> )
Yields a
Model::WebSocketMessage
-
#on_raw_message(&block : String -> )
Yields raw JSON to the block
- #on_server_pong(&block : String -> )
-
#open?
True if connection is open, false otherwise
-
#run
Starts the connection after connecting
-
#send_message(message : String)
Sends the message to the connection