Just saw that hosts endpoint (https://api.twitch.tv/kraken/channels/:id/hosts) is gone from kraken api and the tmi route had already been removed (https://tmi.twitch.tv/hosts?include_logins=1&host=123123123).
I already read other threads here on this forum and hosts seem like a obscure thing for twitch api/chat (since they are only sent to the streamer and now the 2 routes removed) idk why
There are currently no other alternatives, right?
What I do for my own use is to open a second chat connection as myself (the streamer), and use that only to monitor for host notifications. A more structured notification (PubSub, webhook, whatever) would be nice, though, since getting it from chat involves parsing the notification message text and doing a lookup to get the user ID.