Progress: Documentation

This commit is contained in:
Jeremiah Billmann
2013-07-29 13:11:37 -04:00
parent a84aa60299
commit 3c6129cde9
+6 -9
View File
@@ -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))
```