module Turnir::Client::NuumPolling
Extended Modules
Defined in:
turnir/client/nuum_client.crConstant Summary
-
CHAT_URL =
"https://nuum.ru/api/v3/chats?contentType={{type}}&contentId={{id}}"
-
EVENTS_URL =
"https://nuum.ru/api/v3/events/{{chat_id}}/events"
-
HEADERS =
HTTP::Headers {"Origin" => "https://nuum.ru", "Accept" => "application/json", "Content-Type" => "application/json"}
-
LAST_TS_PER_CHAT =
{} of String => String
-
PUBLIC_CHANNEL_URL =
"https://nuum.ru/api/v2/broadcasts/public?channel_name={{channel}}"
-
SUBSCRIBED_CHATS =
Set(String).new
Instance Method Summary
- #fetch_events(chat_id : String)
- #get_chat_id(channel_name : String) : Int32 | Nil
- #log(msg : 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))
#