|
@@ -248,6 +248,9 @@ export function useWs() {
|
|
if (version == 'v2') {
|
|
if (version == 'v2') {
|
|
type = type + '_' + version;
|
|
type = type + '_' + version;
|
|
}
|
|
}
|
|
|
|
+ if (['task_starts','exam_starts','msgfrom_frontend','exam_ends','task_starts_v2','exam_starts_v2','msgfrom_frontend_v2','exam_ends_v2'].includes(type)) {
|
|
|
|
+ console.log(`【发送:${type}】`, JSON.stringify(data))
|
|
|
|
+ }
|
|
socket.emit(type, JSON.stringify(data), callback);
|
|
socket.emit(type, JSON.stringify(data), callback);
|
|
}
|
|
}
|
|
}
|
|
}
|