Misc fixes

This commit is contained in:
Natsumi
2025-07-22 01:53:48 +12:00
parent 4fd898d84d
commit b9b0cebd7f
11 changed files with 53 additions and 49 deletions

View File

@@ -85,7 +85,12 @@ function connectWebSocket(token) {
type: 'error',
text: 'WebSocket Error'
}).show();
socket.onclose();
socket.onclose(
new CloseEvent('close', {
code: 1006, // Abnormal Closure
reason: 'WebSocket Error'
})
);
};
socket.onmessage = ({ data }) => {
try {
@@ -148,7 +153,6 @@ export function reconnectWebSocket() {
/**
* @param {object} args
* @param {string} args.json.type
*/
function handlePipeline(args) {
const userStore = useUserStore();