hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
64 lines (30 loc) • 712 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [EventRouter](./server.eventrouter.md) > [emitWithGlobal](./server.eventrouter.emitwithglobal_1.md)
## EventRouter.emitWithGlobal() method
**Signature:**
```typescript
emitWithGlobal(eventType: string, payload: any): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
eventType
</td><td>
string
</td><td>
</td></tr>
<tr><td>
payload
</td><td>
any
</td><td>
</td></tr>
</tbody></table>
**Returns:**
void