mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-10-31 18:24:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			328 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			328 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Main client websocket
 | |
|  * 
 | |
|  * @author Pierre HUBERT
 | |
|  */
 | |
| class UserWebSocket {
 | |
| 
 | |
| 	/**
 | |
| 	 * Connect to server
 | |
| 	 */
 | |
| 	static async Connect() {
 | |
| 		await this.Disconnect();
 | |
| 
 | |
| 		console.log("Connect to websocket");
 | |
| 	}
 | |
| 
 | |
| 	/**
 | |
| 	 * Disconnect from server
 | |
| 	 */
 | |
| 	static async Disconnect() {
 | |
| 		console.log("Disconnect from websockt");
 | |
| 
 | |
| 	}
 | |
| } |