actually requesting account instances when game end
This commit is contained in:
@@ -182,7 +182,7 @@ function registerEvents(store) {
|
||||
}
|
||||
if (v.phase === 'Finished') {
|
||||
setGame(null);
|
||||
ws.sendAccountState();
|
||||
ws.sendAccountInstances();
|
||||
}
|
||||
|
||||
return store.dispatch(actions.setInstance(v));
|
||||
|
||||
@@ -43,8 +43,8 @@ function createSocket(events) {
|
||||
send(['AccountConstructs', {}]);
|
||||
}
|
||||
|
||||
function sendAccountState() {
|
||||
send(['AccountState', {}]);
|
||||
function sendAccountInstances() {
|
||||
send(['AccountInstances', {}]);
|
||||
}
|
||||
|
||||
function sendAccountSetTeam(ids) {
|
||||
@@ -323,7 +323,7 @@ function createSocket(events) {
|
||||
|
||||
return {
|
||||
sendAccountConstructs,
|
||||
sendAccountState,
|
||||
sendAccountInstances,
|
||||
sendAccountSetTeam,
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user