-
Notifications
You must be signed in to change notification settings - Fork 7
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
Is it useful to convert the jbnc code into a class? #74
Comments
I'd say generally it's always good to use classes because it makes code more manageable. Helps to debug issues as well. It would make sense to further breakdown (e.g., Client class, PreClient class, IRCConnection class, BNC class, etc. imho) ;o |
Oh, I see, it would definitely make a good thing. It takes hours, constantly editing. |
@realrasengan I've adapted the code to be within classes : https://github.com/Madriix/jbnctest It has been tested locally on my PC with Node.js, and it seems to work well. However, I haven't tested it with a second user using a different nickname. I'll need to try that. If it works, I'll deploy it on the site for a few minutes or hours initially. If there are no issues, I'll leave it online until a problem arises. |
That's really cool! :) |
@realrasengan I deployed it to production, but it was immediately shut down. I reverted to the previous version. There's an issue where all users are still sending messages twice (from their end), but the recipient only receives them once. I can't seem to pinpoint the problem. |
The issue no longer occurs when modifying it like this : https://github.com/Madriix/jbnctest/commit/5cb44655367475b2132a4dcf30c918abb7786900 EDIT: I restored, I just replaced this with socket: https://github.com/Madriix/jbnctest/commit/815123dfdd47a5d9aeaa1d8e26eaa5012b3490b5 |
@realrasengan The JBNC classes have been running smoothly via Putty since 7:00 PM. It's almost midnight, with 205 users connected and the bouncetimeout set to 60 minutes, and it still hasn't crashed. Should I send a pull request? |
Sounds good to me! |
Hi,
Do you know if it would be useful for me to try converting the jbnc code into a class,
or is it pointless ?
The text was updated successfully, but these errors were encountered: