Consolidated the server into the project

Added npm scripts to build and launch the whole project
This commit is contained in:
2021-08-26 21:28:10 +02:00
parent 8555e3f9e2
commit 78877f1211
11 changed files with 273 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
export function getWebsocketUrl(): string {
let scheme = 'ws';
if (document.location.protocol === 'https:') {
scheme += 's';
}
return scheme + '://' + document.location.hostname + ':8081';
}