added destructor and 'connected' getter
This commit is contained in:
1 parent
dede0fedfd
commit
285ed6f82b
1 file changed
+8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user