Skip to main content
Home
This release is 8 versions behind 4.7.8 — the latest version of @hono/hono. Jump to latest

@hono/hono@4.6.20
Built and signed on GitHub Actions

Web framework built on Web Standards

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
76%
Published
3 months ago (4.6.20)
class StreamingApi

Constructors

new
StreamingApi(
writable: WritableStream,
_readable: ReadableStream,
)

Properties

private
abortSubscribers: (() => void | Promise<void>)[]

Whether the stream has been aborted.

Whether the stream has been closed normally.

Methods

abort(): void

Abort the stream. You can call this method when stream is aborted by external event.

close(): Promise<void>
onAbort(listener: () => void | Promise<void>): void
sleep(ms: number): Promise<unknown>

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@hono/hono

Import symbol

import { StreamingApi } from "@hono/hono/utils/stream";
or

Import directly with a jsr specifier

import { StreamingApi } from "jsr:@hono/hono/utils/stream";

Add Package

pnpm i jsr:@hono/hono
or (using pnpm 10.8 or older)
pnpm dlx jsr add @hono/hono

Import symbol

import { StreamingApi } from "@hono/hono/utils/stream";

Add Package

yarn add jsr:@hono/hono
or (using Yarn 4.8 or older)
yarn dlx jsr add @hono/hono

Import symbol

import { StreamingApi } from "@hono/hono/utils/stream";

Add Package

npx jsr add @hono/hono

Import symbol

import { StreamingApi } from "@hono/hono/utils/stream";

Add Package

bunx jsr add @hono/hono

Import symbol

import { StreamingApi } from "@hono/hono/utils/stream";