mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-20 09:45:53 +02:00
* ServerModule's createServer() is now async
* Re-write of NNTP Message-ID <> internal message UUIDs
This commit is contained in:
parent
346815a4f2
commit
9d1815682d
11 changed files with 305 additions and 84 deletions
|
@ -123,7 +123,7 @@ exports.getModule = class WebSocketLoginServer extends LoginServerModule {
|
|||
super();
|
||||
}
|
||||
|
||||
createServer() {
|
||||
createServer(cb) {
|
||||
//
|
||||
// We will actually create up to two servers:
|
||||
// * insecure websocket (ws://)
|
||||
|
@ -131,7 +131,7 @@ exports.getModule = class WebSocketLoginServer extends LoginServerModule {
|
|||
//
|
||||
const config = _.get(Config(), 'loginServers.webSocket');
|
||||
if(!_.isObject(config)) {
|
||||
return;
|
||||
return cb(null);
|
||||
}
|
||||
|
||||
const wsPort = _.get(config, 'ws.port');
|
||||
|
@ -161,6 +161,8 @@ exports.getModule = class WebSocketLoginServer extends LoginServerModule {
|
|||
wsServer : new WebSocketServer( { server : httpServer } ),
|
||||
};
|
||||
}
|
||||
|
||||
return cb(null);
|
||||
}
|
||||
|
||||
listen() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue