Optional
middlewares?: Middleware[]An array of middlewares to be applied to the server. Middlewares are executed in the order they are provided.
Optional
port?: numberThe port number on which the server should listen.
An array of routes or route namespaces. Routes define the HTTP endpoints served by the server.
Optional
websocket?: WebSocketHandler<WebsocketDataType> & { Websocket default Bun options with additional upgrade options allowing to pass headers and data. When upgrade is provided, the websocket handler will be called with the provided headers and data.
Options for configuring the server.