Merge branch '5-add-http-and-sse' into 6-add-websocket-transport
This commit is contained in:
@@ -4,6 +4,7 @@ import type { Hono } from 'hono';
|
||||
/** Hono variables populated by transport-boundary middleware. */
|
||||
export type AppEnv = {
|
||||
Variables: {
|
||||
|
||||
/** Decoded Extended JSON request body, when present. */
|
||||
parsedBody?: unknown;
|
||||
|
||||
@@ -19,6 +20,7 @@ export type AppEnv = {
|
||||
* not application routing. Implementations remain unaware of route modules.
|
||||
*/
|
||||
export interface TransportRouter {
|
||||
|
||||
/**
|
||||
* Attach wire endpoints and middleware to the shared Hono application.
|
||||
*
|
||||
@@ -32,6 +34,7 @@ export interface TransportRouter {
|
||||
|
||||
/** A transport which also supplies the WebSocket server used during upgrade. */
|
||||
export interface UpgradeTransportRouter extends TransportRouter {
|
||||
|
||||
/** WebSocket server instance passed to the Node HTTP listener. */
|
||||
readonly websocketServer: WebSocketServerLike;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user