wss
This commit is contained in:
parent
c8282b215d
commit
4b35db6291
@ -172,7 +172,7 @@ export const state = writable<State>({
|
||||
export const connect = () => {
|
||||
const token = Cookies.get('token')
|
||||
if (token) {
|
||||
let url = `ws://${window.location.hostname}/realtime`
|
||||
let url = `wss://${window.location.hostname}/realtime`
|
||||
if (dev) {
|
||||
url = "ws://localhost:3001/realtime"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user