Event Trigger Test

Description

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.

Example HTML

<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>

Test Cases

Waiting for Posts in Event1 channel...
Waiting for Posts in Event2 channel...
Waiting for Posts in Event3 channel...
Waiting for Posts in Event4 channel...