You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Jens,
kannst du mir sagen wie ich am ehesten raus finde, ob ein Client inaktiv (also disconnected) ist?
Ich habe mich schon durch die Objekte gesucht, werde aber nicht so richtig schlau draus.
Ich denke, dass last_seen ist hierzu gedacht, richtig?
Wenn ich das richtig interpretiere, nehme ich https://www.w3schools.com/jsref/jsref_gettime.asp / 1000 und prüfe dann die Differenz zwischen dem Ergebnis und dem Wert in last_seen. Wenn dieser bspw. 300 ist, wurde der Client seit 5 Minuten nicht mehr gesehen und ich kann ggf. davon ausgehen, dass er disconnected ist.
Bitte korrigier mich falls ich das falsch verstehe oder es einfach geht.
Beste Grüße,
Daniel
The text was updated successfully, but these errors were encountered:
Hi Jens,
kannst du mir sagen wie ich am ehesten raus finde, ob ein Client inaktiv (also disconnected) ist?
Ich habe mich schon durch die Objekte gesucht, werde aber nicht so richtig schlau draus.
Ich denke, dass last_seen ist hierzu gedacht, richtig?
Wenn ich das richtig interpretiere, nehme ich https://www.w3schools.com/jsref/jsref_gettime.asp / 1000 und prüfe dann die Differenz zwischen dem Ergebnis und dem Wert in last_seen. Wenn dieser bspw. 300 ist, wurde der Client seit 5 Minuten nicht mehr gesehen und ich kann ggf. davon ausgehen, dass er disconnected ist.
Bitte korrigier mich falls ich das falsch verstehe oder es einfach geht.
Beste Grüße,
Daniel
The text was updated successfully, but these errors were encountered: