Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/esm/sse.js

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/sse.js";

Classes

Unlike the EventSource API, which takes a URL and only supports GET request, the EventConsumer API accepts a Response object and reads the messages from its body, the response can be generated from any type of request, usually returned from the fetch function.

An SSE (server-sent events) implementation that can be used to send messages to the client. This implementation is based on the EventTarget interface and conforms the web standard.

This is an implementation of the EventSource API that serves as a polyfill in environments that do not have native support, such as Node.js.

Variables

v
EventClient
deprecated
v
SSE
deprecated