mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-04-19 05:16:13 +00:00
remove approval language from SSE extension
This commit is contained in:
@@ -8,7 +8,7 @@ SSE is a lightweight alternative to WebSockets that works over existing HTTP con
|
||||
|
||||
## Installing
|
||||
|
||||
Include the extension script after htmx and approve it:
|
||||
Just include the extension script after htmx:
|
||||
|
||||
```html
|
||||
<head>
|
||||
@@ -17,12 +17,6 @@ Include the extension script after htmx and approve it:
|
||||
</head>
|
||||
```
|
||||
|
||||
Approve the extension via meta tag:
|
||||
|
||||
```html
|
||||
<meta name="htmx-config" content='{"extensions": "sse"}'>
|
||||
```
|
||||
|
||||
## How It Works
|
||||
|
||||
The SSE extension hooks into htmx's request pipeline. When any htmx request receives a response with `Content-Type: text/event-stream`, the extension takes over and streams SSE messages into the DOM instead of performing a normal swap.
|
||||
|
||||
Reference in New Issue
Block a user