gameguard
Version:
GameGuard is a NodeJS game server that can be used to manage the players connecting to your game, manage rooms and the players in them, and more.
18 lines (11 loc) • 774 B
Markdown
# **Global**
There are a few actions in GameGuard that are global and affect all players connected to the GameGuard server regardless of the rooms they are in.
## **Table of Contents**
- [API](#api)
## **API**
### **broadcast**
Sends a message to all players connected to the GameGuard server.
| param | type | description | default |
|--------- |-------- |------------------------------------------------------------------------------ |--------- |
| type | string | The type of message this is. This helps you decipher messages on the client. | |
| contents | string | The contents of the message to send to all of the players. | |