Skip to main content
Module

x/peko/mod.ts>sseHandler

Featherweight HTTP routing and utilities for the stateless edge 🐣⚡
Go to Latest
variable sseHandler
import { sseHandler } from "https://deno.land/x/peko@2.0.0-beta/mod.ts";

Streams type "send" CustomEvents from provided EventTarget to Response body. Routes using this handler should be requested via the EventSource browser API.