Class: Server
Since
1.0.0
Extends
EventEmitter
Constructors
new Server()
new Server(
options:ServerOptions):Server
Parameters
| Parameter | Type | Description |
|---|---|---|
options | ServerOptions | The options for this server |
Returns
Overrides
EventEmitter.constructor
Since
1.0.0
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:67
Properties
auth
readonlyauth:null|Auth
The authentication system.
Since
1.0.0
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:49
mediaParsers
readonlymediaParsers:MediaParserStore
The media parsers this server holds.
Since
1.3.0
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:43
middlewares
readonlymiddlewares:MiddlewareStore
The middlewares this server holds.
Since
1.0.0
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:37
options
readonlyoptions:AuthLessServerOptions
The options for this server.
Since
1.0.0
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:61
routes
readonlyroutes:RouteStore
The routes this server holds.
Since
1.0.0
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:31
server
readonlyserver:Server<typeofIncomingMessage, typeofServerResponse>
The http.Server instance that manages the recieved HTTP requests.
Since
1.0.0
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:55
Methods
connect()
connect():
Promise<void>
Returns
Promise<void>
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:86
disconnect()
disconnect():
Promise<void>
Returns
Promise<void>
Source
projects/plugins/packages/api/src/lib/structures/http/Server.ts:121