Skip to content

Commit

Permalink
resolve merge
Browse files Browse the repository at this point in the history
  • Loading branch information
narenranjit committed Jul 10, 2018
2 parents 9d90004 + dd76f16 commit 3ecfb03
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/presence-api-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default function (config) {
* console.log(onlineUsers[a].isOnline);
* });
*
* @param { {userId: string}[] } userList Users to get status for
* @param {{userId: string}[]} userList Users to get status for
* @param {string} [groupName] If not provided, taken from session cookie.
* @param {object} [options] Additional options to change the presence service defaults.
*
Expand Down
19 changes: 19 additions & 0 deletions tests/integration/multiplayer/integration-test-multiplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,25 @@ $(function () {
});
});
});
$('#btnBindToWorld').on('click', function () {
var worldManager = new F.manager.WorldManager({
run: $.extend({}, {
account: $('#txtAccount').val(),
model: $('#txtModel').val(),
project: $('#txtProject').val(),
}, server)
});
worldManager.getCurrentWorld().then(function (worldObject, worldService) {
var worldService = new F.service.World($.extend({}, {
account: $('#txtAccount').val(),
model: $('#txtModel').val(),
project: $('#txtProject').val(),
}, server));
worldService.getPresenceForUsers(worldObject.id).then((pres)=> {
console.log(pres);
});
});
});
$('#btnBindToWorld').on('click', function () {
var worldManager = new F.manager.WorldManager(getServiceOptions());
worldManager.getCurrentWorld().then(function (worldObject, worldService) {
Expand Down

0 comments on commit 3ecfb03

Please sign in to comment.