<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [OnDisconnect](./database.ondisconnect.md) &gt; [set](./database.ondisconnect.set.md)

## OnDisconnect.set() method

<b>Signature:</b>

```typescript
set(value: any, onComplete?: (a: Error | null) => any): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | any |  |
|  onComplete | (a: Error \| null) =&gt; any |  |

<b>Returns:</b>

Promise&lt;void&gt;

