From 7263574a09e7ff91a9d3c986b1a8873c0cdb2b6e Mon Sep 17 00:00:00 2001 From: Fogrexon Date: Sun, 1 May 2022 13:55:01 +0900 Subject: [PATCH] wss --- src/system/EventEmitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/EventEmitter.ts b/src/system/EventEmitter.ts index 8dc6d73..5cd26f6 100644 --- a/src/system/EventEmitter.ts +++ b/src/system/EventEmitter.ts @@ -30,7 +30,7 @@ export const EventEmitter = mitt() export const initializeEventEmitter = () => { try { - const websocket = new WebSocket(`ws://${location.host}/ws/visualizer`) + const websocket = new WebSocket(`wss://${location.host}/ws/visualizer`) websocket.addEventListener('message', messageHandler.bind(this)) websocket.addEventListener('error', e => { console.error(e)