ws
This commit is contained in:
1 parent
0bf75d7faa
commit
65d37eeb61
11 files changed
+708
-19
No files matched your search
+5
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user