As of version 1.7, we have created two new extensions ws.js and sse.js to support realtime development in htmx. All new effort on WebSockets and Server Sent Events will occur in these extensions.
The existing hx-ws and hx-sse tags have been deprecated and will not receive any more updates. We plan to remove these two tags from the core library in htmx version 2.0.
Because extensions use a different calling syntax, there are minor differences in the way that this new code is invoked. This test server includes several demos / manual tests for each extension that you can try out for yourself. Each is presented side-by-side with test cases for the original code so that you can see the difference.