maxClients RoomSettings, Orbiter JavaScript Framework

All Union Platform questions, comments, feature requests, and bug reports.

maxClients RoomSettings, Orbiter JavaScript Framework

Postby readme » Mon 29 Sep 2014 12:52

Hi,

I am new to Union/Orbiter and encountered a problem:

I am trying to set the RoomSettings for a Room created by an application, code looks as follows:

Code: Select all
var roomSettings            = new net.user1.orbiter.RoomSettings();
roomSettings.maxClients = 3;

console.log(roomSettings);

var aroom = orbiter.getRoomManager().createRoom('test',roomSettings);

console.log(aroom.getRoomSettings());


from what I understand that should set the maxCients-Setting to 3, but the console-logs give me:

a.user1.orbiter.RoomSettings {removeOnEmpty: null, maxClients: 3, password: null, serialize: function} (for the first console.log) and
a.user1.orbiter.RoomSettings {removeOnEmpty: null, maxClients: null, password: null, serialize: function} (for the second log)

I am honestly not sure what I am doing wrong here.
readme
 
Posts: 1
Joined: Mon 29 Sep 2014 12:46

Return to Union Platform

Online

Users browsing this forum: No registered users and 5 guests