Only send PING to registered connections on focus
This commit is contained in:
parent
76b6931ebb
commit
fcc80a85e3
1 changed files with 3 additions and 1 deletions
|
@ -2006,9 +2006,11 @@ export default class App extends Component {
|
||||||
this.lastFocusPingDate = now;
|
this.lastFocusPingDate = now;
|
||||||
|
|
||||||
for (let client of this.clients.values()) {
|
for (let client of this.clients.values()) {
|
||||||
|
if (client.status === Client.Status.REGISTERED) {
|
||||||
client.send({ command: "PING", params: ["gamja"] });
|
client.send({ command: "PING", params: ["gamja"] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.baseTitle = document.title;
|
this.baseTitle = document.title;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue