fix(core): update

This commit is contained in:
2019-09-01 18:07:52 +02:00
parent d6e81288b4
commit a3f4dcbc2a
3 changed files with 151 additions and 221 deletions

View File

@ -2,6 +2,7 @@ import * as plugins from './smartsocket.plugins';
// used in case no other server is supplied
import * as http from 'http';
import * as https from 'https';
import { Smartsocket } from './smartsocket.classes.smartsocket';
/**
@ -10,7 +11,7 @@ import { Smartsocket } from './smartsocket.classes.smartsocket';
*/
export class SocketServer {
private smartsocket: Smartsocket;
private httpServer: http.Server;
private httpServer: http.Server | https.Server;
// wether httpServer is standalone
private standaloneServer = false;
private expressServer: any;