import type { HTTPRoute, RouteOptions, HTTPRequestHandler, WebSocketHandler } from '../index.ts'; export interface WebSocketRouteOptions extends RouteOptions { /** * If the request does not have a `Connection: upgrade` header, pass a * fallback here to handle the request normally, otherwise the request * will be rejected with a 400 error. */ fallback?: HTTPRequestHandler; /** * The maximum message size to be sent or received over the socket in bytes * * @default 10_485_760 */ maxMessageSize?: number; } export type WebSocketRoute = HTTPRoute & WebSocketRouteOptions; /** * Negotiate a connection upgrade to the WebSocket protocol and call the passed * handler */ export declare function webSocketRoute(route: WebSocketRoute): HTTPRoute; //# sourceMappingURL=websocket.d.ts.map