mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	clearer WS error message
This commit is contained in:
		
							parent
							
								
									5350496ed4
								
							
						
					
					
						commit
						f98fa4098f
					
				@ -172,7 +172,7 @@ function connectWebSocket() {
 | 
			
		||||
 | 
			
		||||
async function sendPing() {
 | 
			
		||||
    if (Date.now() - lastPingTs > 30000) {
 | 
			
		||||
        console.log(utils.now(), "Lost connection to server");
 | 
			
		||||
        console.log(utils.now(), "Lost websocket connection to the backend");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (ws.readyState === ws.OPEN) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user