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

Integrate WebSocket Support in HTMX for Real-Time Web Application Development #2511

Closed
YagilItzhak opened this issue Apr 26, 2024 · 2 comments

Comments

@YagilItzhak
Copy link

WebSockets provide a persistent, low-latency connection that can receive and send messages to and from a server in real time. This is essential for applications that require instant data updates like real-time analytics, chats, and more...
Integrating WebSockets directly into HTMX would simplify the development of such applications by allowing developers to use HTMX's declarative API to manage WebSocket connections and data updates.

Here is an example of how I see it:

<div hx-sock="/live_distance">
    The connection is yet to be established
</div>

If you like it, I would love to help in adding this feature!

@Telroshan
Copy link
Collaborator

Telroshan commented Apr 26, 2024

Hey, you might want to look into the existing websockets extension

@YagilItzhak
Copy link
Author

Hey, you might want to look into the existing websockets extension

Oh, thanks 😂.

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

No branches or pull requests

2 participants