module

Turnir::Client::VkWebsocket

Constants

CHANNEL_INFO_URL = "https://api.live.vkvideo.ru/v1/blog/{{name}}/public_video_stream/chat/user/"
Headers = HTTP::Headers {"Origin" => "https://live.vkvideo.ru"}
WebsocketMutex = Mutex.new
WS_URL = "wss://pubsub.live.vkvideo.ru/connection/websocket?cf_protocol_version=v2"

Instance methods

get_vk_app_config
Source
get_vk_channel_id(name : String) : Int32 | Nil
Source
log(msg)
Source
parse_message(json_message)
Source
send_login(vk_token : String)
Source
send_subscribe(channel : String)
Source
start(sync_channel : Channel(Nil), storage : Turnir::ChatStorage::Storage, channels_map : Hash(String, String))
Source
stop
Source
subscribe_to_channel(channel_name : String)
Source
verbose_log(msg)
Source

Nested types