README
sse-handler
:boom: [ESM] The server-sent events (sse) handler for Node.js according to w3c and whatwg
Example
Full example in /example
folder.
import { http } from '@awesomeorganization/servers'
import { rewriteHandler } from '@awesomeorganization/rewrite-handler'
import { sseHandler } from '@awesomeorganization/sse-handler'
import { staticHandler } from '@awesomeorganization/static-handler'
const example = async () => {
const rewriteMiddleware = rewriteHandler({
rules: [
{
pattern: '(.*)/