Readonly
host: stringReadonly
localUrl: stringThe local URL of the server
Readonly
port: numberThe port the server is bound to
Readonly
protected: ProtectedRouterAccess to easy to use protected routes that automatically insert middleware that checks with the authentication provider for permitted access.
Readonly
server: ServerThe underlying HTTP/s server instance
Readonly
ssl: booleanWhether this server is answering SSL requests
Starts the server
Serves static files from the specified path
Stops the server
Readonly
tunnel: TunnelThe cloudflared tunnel instance
Readonly
url: stringThe public URL of the server
Creates a WebSocket route in the same kind of format as .get/.post/etc
Applies the WebSocket middleware to the specified Router
Readonly
wsServer: WebSocket.ServerReturns the WebSocket.Server instance attached to the application
The hostname the server is bound to