← Back to index
interface ServeListenerOptions

Properties

🔗
signal: AbortSignal

An AbortSignal to close the server and all connections.

🔗
onError: (error: unknown) => Response | Promise<Response>

The handler to invoke when route handlers throw an error.

🔗
onListen: (params: { hostname: string; port: number; }) => void

The callback which is called when the server started listening