module Turnir::Client::VkWebsocket

Extended Modules

Defined in:

turnir/client/vk_client.cr

Constant Summary

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 Method Summary

Instance Method Detail

def get_vk_app_config #

[View source]
def get_vk_channel_id(name : String) : Int32 | Nil #

[View source]
def log(msg) #

[View source]
def parse_message(json_message) #

[View source]
def send_login(vk_token : String) #

[View source]
def send_subscribe(channel : String) #

[View source]
def start(sync_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]