Options
All
  • Public
  • Public/Protected
  • All
Menu

Base handler for websocket requests. By default, the request input and output body will be in a ReadableStream, because of interface consistency among middleware. If ReadableStream is not available, like in React-Native, the response body will be an async iterable.

Hierarchy

  • WebSocketHandler

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

  • new WebSocketHandler(__namedParameters?: { connectionTimeout: number }): WebSocketHandler

Properties

Private Readonly connectionTimeout

connectionTimeout: number

Methods

destroy

  • destroy(): void

handle

Object literals

Readonly metadata

metadata: object

handlerProtocol

handlerProtocol: string = "websocket"