module Turnir::Client::VkWebsocket
Extended Modules
Defined in:
turnir/client/vk_client.crConstant 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
- #get_vk_app_config
- #get_vk_channel_id(name : String) : Int32 | Nil
- #log(msg)
- #parse_message(json_message)
- #send_login(vk_token : String)
- #send_subscribe(channel : String)
- #start(sync_channel : Channel(Nil), storage : Turnir::ChatStorage::Storage, channels_map : Hash(String, String))
- #stop
- #subscribe_to_channel(channel_name : String)
Instance Method Detail
def start(sync_channel : Channel(Nil), storage : Turnir::ChatStorage::Storage, channels_map : Hash(String, String))
#