You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the operation of .where .map .where. does not work! In your PlayerInteraction.js line 63 for interaction
//mine
var userAction = rx.Observable.fromEvent(room.getEmitter(),'userOperation',function(data){ console.log(data);return data;});
//playerAction.subscribe(x=>console.log(x));
var playerAction = userAction.where(function(e) {return e.user == player.uid;})
.map(function(e) {return that.actionFromMessage(e, availableActions);} )
.where(function(action) {return action != null;}).publish();
playerAction.connect();
the operation of .where .map .where. does not work! In your PlayerInteraction.js line 63 for interaction
//mine
var userAction = rx.Observable.fromEvent(room.getEmitter(),'userOperation',function(data){ console.log(data);return data;});
//playerAction.subscribe(x=>console.log(x));
var playerAction = userAction.where(function(e) {return e.user == player.uid;})
.map(function(e) {return that.actionFromMessage(e, availableActions);} )
.where(function(action) {return action != null;}).publish();
playerAction.connect();
// yours
let playerAction = messages.where(e => e.user === player.id)
.map(e => PlayerInteraction.actionFromMessage(e.text, availableActions))
.where(action => action !== null)
.publish();
@stephenyeargin @gangstead @minalecs @CharlieHess Please help!
The text was updated successfully, but these errors were encountered: