|
@@ -1,5 +1,6 @@
|
|
|
import store from "@/store";
|
|
|
import { Message } from "iview";
|
|
|
+import { VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO } from "@/constants/constants";
|
|
|
|
|
|
let ws;
|
|
|
let shouldReconnect = true;
|
|
@@ -12,10 +13,8 @@ export function openWS({ examRecordDataId }) {
|
|
|
console.log("in openWS", examRecordDataId);
|
|
|
try {
|
|
|
ws = new WebSocket(
|
|
|
- "ws://192.168.10.39:8010" +
|
|
|
- `/audioAnswerWebSocket/${examRecordDataId}/${store.state.user.key}/${
|
|
|
- store.state.user.token
|
|
|
- }`
|
|
|
+ VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO +
|
|
|
+ `/${examRecordDataId}/${store.state.user.key}/${store.state.user.token}`
|
|
|
);
|
|
|
} catch {
|
|
|
setTimeout(() => {
|