mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-19 11:19:49 +08:00
Progress: Documentation
This commit is contained in:
@@ -120,21 +120,18 @@ Configure the different options, events, callbacks that you would like to consum
|
||||
```js
|
||||
options.onPlayerConnect(callback)
|
||||
```
|
||||
Once the client has made a connection to the server, this event will fire.
|
||||
**callback**
|
||||
Type: function
|
||||
Once the client has made a connection to the server, this event will fire.
|
||||
`callback` function
|
||||
```js
|
||||
options.onPlayerDisconnect(callback)
|
||||
```
|
||||
If client has has disconnected from the server, this event will fire.
|
||||
**callback**
|
||||
Type: function
|
||||
If client has has disconnected from the server, this event will fire.
|
||||
`callback` function
|
||||
```js
|
||||
options.onPlayerReconnect(callback)
|
||||
```
|
||||
If client has has disconnects and reconnects to the server, this event will fire.
|
||||
**callback**
|
||||
Type: function
|
||||
If client has has disconnects and reconnects to the server, this event will fire.
|
||||
`callback` function
|
||||
```js
|
||||
options.onPlayerUpdate(callback(state))
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user