瀏覽代碼

upload

dev
HolyKnightIX 1 年之前
父節點
當前提交
4b11b945aa
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      src/views/realTimeChat/realTimeChat.vue

+ 3
- 2
src/views/realTimeChat/realTimeChat.vue 查看文件

@@ -130,8 +130,9 @@ export default {
},

socketOnLink() {
const url = document.location.host;
this.socket = new WebSocket("wss://" + url);
const url = "wss://mtest.metavatar.cc/webrtc";
// const url = document.location.host;
this.socket = new WebSocket(url);

this.socket.onopen = (success) => {
console.log(success, "连接成功!");


Loading…
取消
儲存