mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-02-21 11:51:08 +00:00
fix channels in prod
This commit is contained in:
@@ -540,7 +540,8 @@ export default {
|
||||
methods: {
|
||||
setupWS() {
|
||||
console.log("Starting websocket");
|
||||
this.ws = new WebSocket(`ws://${this.wsUrl}/ws/dashinfo/?access_token=${this.token}`);
|
||||
const proto = process.env.NODE_ENV === "production" ? "wss" : "ws";
|
||||
this.ws = new WebSocket(`${proto}://${this.wsUrl}/ws/dashinfo/?access_token=${this.token}`);
|
||||
this.ws.onopen = e => {
|
||||
console.log("Connected to ws");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user