mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
send message offline
This commit is contained in:
@@ -14,7 +14,15 @@ export class WsChatService {
|
||||
isLogin = false;
|
||||
loginResponse = {}
|
||||
|
||||
constructor() {}
|
||||
constructor() {
|
||||
|
||||
|
||||
window.addEventListener('online', ()=>{
|
||||
this.connect()
|
||||
this.login()
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
connect() {
|
||||
// dont connect if is already connected
|
||||
|
||||
Reference in New Issue
Block a user