Multi-Channel Test

Legacy Style New Style

Description

This page connects to a single different Server Sent Event (SSE) stream, listening on events named "Event1", "Event2", "Event3", and "Event4". Each separate kind of event should swap into a different container.

Example HTML

<div hx-sse="connect:http://localhost/posts.html?types=Event1%2cEvent2%2cEvent3%2cEvent4">
	<div hx-sse="swap:Event1">Waiting for Posts in Event1 channel...</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...