KeystoneJS httpsServer 属性 未定义

KeystoneJS httpsServer property undefined

我想通过 https 服务器连接 socket.io 与 KeystoneJS,但我无法获取 KeystoneJS 的 https 服务器实例。 我正在尝试这样得到它。

keystone.start({
    onHttpsServerCreated:function(){
        console.log(keystone.httpsServer);
    }
});

但它会返回未定义的,当我登录 keystone 时,我没有在其中看到任何服务器 属性。这是我的 sll init:

'ssl':'only',
'ssl key':'./ca.key',
'ssl cert':'./ca.cert',
'ssl port':'44433',

使用 http 服务器它工作正常。

我将 属性 onHttpsServerCreated 更改为 onStart,一切正常。 但我仍然认为这是一个错误,需要修复。