Add (unimplemented) webview server

This commit is contained in:
Asher
2019-07-02 16:15:41 -05:00
parent 3a78c0964f
commit 6a35ab1dc0
2 changed files with 110 additions and 73 deletions

View File

@@ -1,4 +1,12 @@
import { Server } from "./server";
import { MainServer, WebviewServer } from "./server";
const server = new Server();
server.listen();
const webviewServer = new WebviewServer();
const server = new MainServer(webviewServer);
webviewServer.listen(8444).then(async () => {
await server.listen(8443);
console.log(`Main server serving ${server.address}`);
console.log(`Webview server serving ${webviewServer.address}`);
}).catch((error) => {
console.error(error);
process.exit(1);
});