Skip to main content

Class: Server

Since

1.0.0

Extends

Constructors

new Server()

new Server(options: ServerOptions): Server

Parameters

ParameterTypeDescription
optionsServerOptionsThe options for this server

Returns

Server

Since

1.0.0

Overrides

AsyncEventEmitter<ServerEvents>.constructor

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:75

Properties

auth

readonly auth: null | Auth

The authentication system.

Since

1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:57


middlewares

readonly middlewares: MiddlewareStore

The middlewares this server holds.

Since

1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:51


options

readonly options: AuthLessServerOptions

The options for this server.

Since

1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:69


routes

readonly routes: RouteStore

The routes this server holds.

Since

1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:45


server

readonly server: Server<typeof IncomingMessage, typeof ServerResponse>

The http.Server instance that manages the recieved HTTP requests.

Since

1.0.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:63

Methods

connect()

connect(): Promise<void>

Returns

Promise<void>

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:93


disconnect()

disconnect(): Promise<void>

Returns

Promise<void>

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:128