notifyRoom(page, obj.code, {data:obj.data});
break;
+ case "result":
+ // Special case: notify all, 'transroom': Game --> Hall
+ notifyRoom("/", "result", {gid:obj.gid, score:obj.score});
+ break;
+
// Passing, relaying something: from isn't needed,
// but target is fully identified (sid + tmpId)
case "challenge":
}
};
const closeListener = () => {
- // For tab or browser closing:
+ // For browser or tab closing (including page reload):
doDisconnect();
};
// Update clients object: add new connexion