veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
23 lines (13 loc) • 556 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [OnDisconnect](./database.ondisconnect.md) > [cancel](./database.ondisconnect.cancel.md)
## OnDisconnect.cancel() method
<b>Signature:</b>
```typescript
cancel(onComplete?: (a: Error | null) => any): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| onComplete | (a: Error \| null) => any | |
<b>Returns:</b>
Promise<void>