-
Notifications
You must be signed in to change notification settings - Fork 5
Parameters for sessions
Wikiti edited this page Jan 3, 2017
·
2 revisions
The following parameters are accepted for session registration. If a parameter has a default value, then it may be omitted (optional).
Parameter name | Description | Type | Default value |
---|---|---|---|
ip | Server ip (host) to bind. | String | 127.0.0.1 |
port | Server TCP port to bind. | PortType (Int) | 9696 |
max_connections | Max connections allowed at the same time. | Int | 24 |
uuid | Unique identifier (server). | String | random uuid string |
flash_policy_file_port | Port used for flash policy server. See Manage flash clients | PortType (Int) | null |
Example:
var server = Network.registerSession(NetworkMode.SERVER, {
ip: '0.0.0.0',
port: 7777,
max_connections: 50,
uuid: 'server_id'
});
Parameter name | Description | Type | Default value |
---|---|---|---|
ip | Server ip to connect into. | String | 127.0.0.1 |
port | Server TCP port to connect into. | PortType (Int) | 9696 |
uuid | Unique identifier (client). | String | random uuid string |
flash_policy_file_url | Flash policy file used in flash clients. See Manage flash clients | String | null |
Example:
var client = Network.registerSession(NetworkMode.CLIENT, {
ip: '127.0.0.1',
port: 7777,
uuid: 'client_id'
});