Skip to content
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

JChat for FireFox #49

Closed
KevinLeeMorris opened this issue Apr 22, 2023 · 1 comment
Closed

JChat for FireFox #49

KevinLeeMorris opened this issue Apr 22, 2023 · 1 comment

Comments

@KevinLeeMorris
Copy link

A chat app meant to run on any browser. It's purpose is for internal "chat" type communication amongst members of a small team. Although the obvious choice for this situation is Server Side Events, SSE has such severe limitations in both the server and the browser (6 instances), simple polling was used instead. Brook 5 Framework is so efficient, handling thousands of unnecessary (as in "no new messages to send") polling events is easy. A JavaScript interval of 3 seconds is used to poll the server and get updates of which other users are active, inactive or idle, as well as a list of new conversations, or new messages. Each conversation opens in it's own tab, and each message includes a face photo of the other user. All HTML and Javascript is dead simple and from W3 Schools. No libraries were used.

Interesting "Behind the scenes" Facts:

SSE Limitations: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
About the name: This app replaces a stand-alone windows executable chat app that was built in Delphi XE3 that was in use in our company for about 8 years prior. Having "For FireFox" helped users differentiate this app from the old Windows-only app.

Brook 5 Framework was the perfect fit for this situation.

@silvioprog
Copy link
Member

Wow, thanks for the feedback @KevinLeeMorris, closing but keeping as Showcase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants