mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-31 07:51:36 +00:00 
			
		
		
		
	aaaaa
This commit is contained in:
		
							
								
								
									
										18
									
								
								Esiur.Examples.StandaloneWebServerDemo/Web/js/app.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Esiur.Examples.StandaloneWebServerDemo/Web/js/app.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| async function init() { | ||||
|     try { | ||||
|  | ||||
|         connection = await wh.get(`iip://${window.location.hostname}`, { | ||||
|             autoReconnect: true | ||||
|         }); | ||||
|  | ||||
|         window.demo = await connection.get("sys/demo"); | ||||
|  | ||||
|     } | ||||
|     catch (ex) | ||||
|     { | ||||
|         alert(ex); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
| const FORMAT_CONNECTION_STATUS = (x) => ["Offline", "Connecting...", "Online"][x]; | ||||
		Reference in New Issue
	
	Block a user