UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

78 lines (36 loc) 817 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [EventRouter](./server.eventrouter.md) &gt; [emitWithWorld](./server.eventrouter.emitwithworld_1.md) ## EventRouter.emitWithWorld() method **Signature:** ```typescript emitWithWorld(world: World, eventType: string, payload: any): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> world </td><td> [World](./server.world.md) </td><td> </td></tr> <tr><td> eventType </td><td> string </td><td> </td></tr> <tr><td> payload </td><td> any </td><td> </td></tr> </tbody></table> **Returns:** void