feat(push): smart push queueing with page-visibility fast path and app-ping/pong fallback
This commit is contained in:
@@ -12,6 +12,8 @@ export abstract class ClientConnection {
|
||||
readonly transportName: string;
|
||||
sessionId: string | null = null;
|
||||
onDisconnect: ((conn: ClientConnection) => void) | null = null;
|
||||
/** True while the client tab/app is in the foreground. Starts true (assume visible until told otherwise). */
|
||||
pageVisible: boolean = true;
|
||||
|
||||
constructor(transportName: string) {
|
||||
this.transportName = transportName;
|
||||
|
||||
Reference in New Issue
Block a user