module Turnir::Client::GoodgameWebsocket

Extended Modules

Defined in:

turnir/client/goodgame_client.cr

Constant 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

Instance Method Detail

def get_channel_id(channel_name : String) : Int32 | Nil #

[View source]
def log(msg : String) #

[View source]
def parse_message(msg : String) : Turnir::ChatStorage::Types::ChatMessage | Nil #

[View source]
def start(ready_channel : Channel(Nil), storage : Turnir::ChatStorage::Storage, channels_map : Hash(String, String)) #

[View source]
def stop #

[View source]
def subscribe_to_channel(channel_name : String) #

[View source]