fix httpOptions

This commit is contained in:
srgooglo 2022-08-04 17:15:45 +02:00
parent 071358c3e5
commit f3a4b2dace

View File

@ -89,10 +89,8 @@ class Server {
this.engineInstance = global.engineInstance = HTTPEngines[this.params.httpEngine]() this.engineInstance = global.engineInstance = HTTPEngines[this.params.httpEngine]()
this.httpInstance = global.httpInstance = HTTPProtocolsInstances[this.params.protocol].createServer({ this.httpInstance = global.httpInstance = HTTPProtocolsInstances[this.params.protocol].createServer({
...this.engineInstance, ...this.params.httpOptions ?? {},
key: this.params.key, }, this.engineInstance)
cert: this.params.cert,
})
this.wsInterface = global.wsInterface = { this.wsInterface = global.wsInterface = {
io: new io.Server(this.httpInstance), io: new io.Server(this.httpInstance),
map: {}, map: {},