| 
														
															@@ -51,15 +51,18 @@ export const useWebsocketStore = defineStore("websocket", () => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}; 
														 | 
														
														 | 
														
															 	}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	const unsubscribe = async (channel: string, uuid: string) => { 
														 | 
														
														 | 
														
															 	const unsubscribe = async (channel: string, uuid: string) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		if (!socketChannels.includes(channel)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			await runJob("api.unsubscribe", { channel }); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if ( 
														 | 
														
														 | 
														
															 		if ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			!subscriptions.value[channel] || 
														 | 
														
														 | 
														
															 			!subscriptions.value[channel] || 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			!subscriptions.value[channel][uuid] 
														 | 
														
														 | 
														
															 			!subscriptions.value[channel][uuid] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		) 
														 | 
														
														 | 
														
															 		) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return; 
														 | 
														
														 | 
														
															 			return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		if ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			!socketChannels.includes(channel) && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			Object.keys(subscriptions.value[channel]).length <= 1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			await runJob("api.unsubscribe", { channel }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		delete subscriptions.value[channel][uuid]; 
														 | 
														
														 | 
														
															 		delete subscriptions.value[channel][uuid]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if (Object.keys(subscriptions.value[channel]).length === 0) 
														 | 
														
														 | 
														
															 		if (Object.keys(subscriptions.value[channel]).length === 0) 
														 |