Consolidated the server into the project
Added npm scripts to build and launch the whole project
This commit is contained in:
9
ts/websocket/websocket.ts
Normal file
9
ts/websocket/websocket.ts
Normal 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';
|
||||
}
|
||||
Reference in New Issue
Block a user