mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-13 00:50:08 +08:00
Progress: Documentation
This commit is contained in:
@@ -113,9 +113,9 @@ var playerStates = GarageServerIO.getPlayerStates(),
|
||||
GarageServerIO.initializeGarageServer(path, options)
|
||||
```
|
||||
Establish connection to GarageServer.IO on the server via Socket.IO and register events.
|
||||
`path` string
|
||||
`path` **string**
|
||||
The URL that points to where GarageServer.IO is running at on the server.
|
||||
`options` object literal
|
||||
`options` **object literal**
|
||||
Configure the different options, events, callbacks that you would like to consume on the client.
|
||||
```js
|
||||
options.onPlayerConnect(callback)
|
||||
|
||||
Reference in New Issue
Block a user