UNPKG

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
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [client](./client.md) &gt; [HytopiaUI](./client.hytopiaui.md) &gt; [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) =&gt; void </td><td> The callback function to remove </td></tr> </tbody></table> **Returns:** void