hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
55 lines (26 loc) • 759 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [client](./client.md) > [HytopiaUI](./client.hytopiaui.md) > [offData](./client.hytopiaui.offdata.md)
## HytopiaUI.offData() method
Removes a specific data event listener. Pass the same callback function used in `onData()`<!-- -->.
**Signature:**
```typescript
offData(callback: (data: object) => void): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
callback
</td><td>
(data: object) => void
</td><td>
The callback function to remove
</td></tr>
</tbody></table>
**Returns:**
void