added destructor and 'connected' getter

This commit is contained in:
Mathew committed 2019-07-08 14:45:29 +02:00
1 parent dede0fedfd
commit 285ed6f82b
1 file changed
+8
+8
View File
@@ -72,6 +72,14 @@ export default class Socket {
});
}
destructor(){
this.socket.close()
}
get connected(){
return this.socket.connected
}
// motd() {
// if (this.con.first) return
// this.con.first = true