This commit is contained in:
ntr committed 2022-09-04 18:47:51 +10:00
1 parent 0bf75d7faa
commit 65d37eeb61
11 files changed
+708 -19

No files matched your search

+5 -3
View File
@@ -1,6 +1,8 @@
const SOCKET_URL = (window.location.host.includes('localhost') || window.location.host === '' || window.location.host.includes('192.168.0'))
? `ws://${window.location.hostname}:40080`
: `${window.location.protocol === 'https:' ? 'wss://' : 'ws://'}${window.location.host}/api/ws`;
// const SOCKET_URL = (window.location.host.includes('localhost') || window.location.host === '' || window.location.host.includes('192.168.0'))
// ? `ws://${window.location.hostname}:40080`
// : `${window.location.protocol === 'https:' ? 'wss://' : 'ws://'}${window.location.host}/api/ws`;
const SOCKET_URL = `${window.location.protocol === 'https:' ? 'wss://' : 'ws://'}${window.location.host}/api/ws`;
export default function createSocket(store) {
let ws;