Simplify messageReceiver initialization & reset
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
f057bc560f
commit
dfd564e67f
6 changed files with 318 additions and 289 deletions
|
@ -4,7 +4,7 @@
|
|||
import { clearTimeoutIfNecessary } from './clearTimeoutIfNecessary';
|
||||
|
||||
export type WaitForOnlineOptionsType = Readonly<{
|
||||
server?: Readonly<{ isOnline: () => boolean }>;
|
||||
server?: Readonly<{ isOnline: () => boolean | undefined }>;
|
||||
events?: {
|
||||
on: (event: 'online', fn: () => void) => void;
|
||||
off: (event: 'online', fn: () => void) => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue