module Turnir::Client::GoodgameWebsocket
Extended Modules
Defined in:
turnir/client/goodgame_client.crConstant Summary
-
ChannelInfoURL =
"https://goodgame.ru/api/4/users/{{name}}/stream"
-
HEADERS =
HTTP::Headers {"Origin" => "https://goodgame.ru", "Accept" => "application/json"}
-
WebsocketMutex =
Mutex.new
-
WS_URL =
"wss://chat-1.goodgame.ru/chat2/"
Instance Method Summary
- #get_channel_id(channel_name : String) : Int32 | Nil
- #log(msg : String)
- #parse_message(msg : String) : Turnir::ChatStorage::Types::ChatMessage | Nil
- #start(ready_channel : Channel(Nil), storage : Turnir::ChatStorage::Storage, channels_map : Hash(String, String))
- #stop
- #subscribe_to_channel(channel_name : String)
Instance Method Detail
def start(ready_channel : Channel(Nil), storage : Turnir::ChatStorage::Storage, channels_map : Hash(String, String))
#