mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-23 04:29:21 +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");
|
||
|
|
||
|
}
|
||
|
}
|