-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Know when the join attempt is finished #183
Comments
Listen to the Room state with the room state event hook. |
But as far as I understood, that would only fire when it was successful right? At least on my tests, it didn't say anything after joining an unexistent or suspended channel For the successful joins I was using the |
IRC doesn't support that as far as I am aware joining non existent or banned channels just does nothing or maybe fires a room state Incase of the ban not super sure. |
I know that twurple (a popular javascript twitch client with IRC support) does that, and looking through its code, according to this part, the way they do it is: On every join request, they wait for 10 seconds for any of the following:
Its not as straight forward as I first imagined, there's not a specific way to know that directly from twitch, but it does give the tools to know when that happens. With all that, I know I can also do that on my end, but I still think it would be a nice quality of life to have directly on the library, with an event like |
Sure. It can be implemented I'm not opposed to such a feature. It's a pretty hefty one though and I don't think I will spend any time on it personally, at least not in the foreseeable future. I'll leave this issue open for any potential contributors |
Hey!! 👋 👋
The
client.Join
request is a non-blocking request, so there's no way of knowing when it is over (being either successful or not).I'd like to know that cause I have a list of channels I want to join, and if there's an error on any of them, like for example when the channel does not exist, or if it is suspended at the moment, I'd like to make it visible on the console.
Along with that, I also would like to whenever the join attempt is over, display a message on the console (no matter if it was successful or not), to measure how many channels I'm connected, and how many channels are left, to give a sense of progress and to know when it joined all of them.
Is there a way of doing that with the current API?
The text was updated successfully, but these errors were encountered: