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

[ws][Events] Any events of incoming messages? #84

Open
AjiMk opened this issue Aug 18, 2024 · 0 comments
Open

[ws][Events] Any events of incoming messages? #84

AjiMk opened this issue Aug 18, 2024 · 0 comments

Comments

@AjiMk
Copy link

AjiMk commented Aug 18, 2024

I've been delving into HTMX WebSocket extensions, but I can't seem to find any events related to incoming messages. There are events like htmx:wsBeforeMessage and htmx:wsBeforeMessage, but they don't meet my requirements.

My Requirement

I have a data table connected to a websocket, and I need an event to be triggered on the client side when any changes are made to the data from the backend. The alternative options are swap or pooling, but I would like to listen for the event. Is there any event for this, or can we access the WebSocket instance on the client side?

I'm new to HTMX, so any help would be greatly appreciated.

Events: https://github.com/bigskysoftware/htmx-extensions/blob/main/src/ws/README.md#events

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

1 participant