Skip to main content

Class: Server

api/src.Server

Hierarchy

  • EventEmitter

    Server

Constructors

constructor

new Server(options?)

Parameters

NameTypeDescription
optionsServerOptions

Overrides

EventEmitter.constructor

Defined in

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

Properties

auth

Readonly auth: null | Auth

Defined in

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


mediaParsers

Readonly mediaParsers: MediaParserStore

Defined in

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


middlewares

Readonly middlewares: MiddlewareStore

Defined in

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


options

Readonly options: AuthLessServerOptions

Defined in

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


routes

Readonly routes: RouteStore

Defined in

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


server

Readonly server: Server

Defined in

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

Methods

connect

connect(): Promise<void>

Returns

Promise<void>

Defined in

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


disconnect

disconnect(): Promise<void>

Returns

Promise<void>

Defined in

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