Initialize VUE project with WS connection, main pages, and various small features

This commit is contained in:
2023-10-25 18:43:44 -05:00
parent 444f0226e6
commit 9cd6f83bec
38 changed files with 5624 additions and 1224 deletions

View File

@@ -0,0 +1,8 @@
function createWebSocket(url: string, eventHandler: (event: MessageEvent) => void) {
const urlObject = new URL(url);
const webSocket = new WebSocket(urlObject);
webSocket.onmessage = eventHandler;
return webSocket;
}
export default createWebSocket