This page connects to a single different Server Sent Event (SSE) streams, listening on events named "Event1", "Event2", "Event3", and "Event4". Each event is used as a trigger for hx-get to load a random page from the server.
<div hx-ext="sse" sse-connect="http://localhost/posts.html?types=Event1%2cEvent2%2cEvent3%2cEvent4"> <div hx-get="http://localhost/page/random" hx-trigger="sse:Event1">Waiting for Posts...</div> </div>