@dialstack/sdk-dev / webrtc/src / AppResumeSubscribe
Type Alias: AppResumeSubscribe
TypeScript
type AppResumeSubscribe = (cb) => () => void;
Defined in: sdk/webrtc/src/transport.ts:25
Subscribe to "the environment came back to the foreground / regained the
network" and return an unsubscribe fn. Injected like the socket factory: web
uses the default below (DOM lifecycle events); React Native supplies an
AppState-backed variant (there is no document on RN). The transport uses
this to actively re-verify a connection the browser may have silently dropped
while backgrounded.
Parameters
cb
() => void
Returns
() => void