bedrock-portal 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Creates a joinable session in Minecraft Bedrock Edition that can route players to their a specified host",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "axios": "^1.0.0",
21
21
  "uuid": "^9.0.0",
22
- "xbox-rta": "^0.0.8"
22
+ "xbox-rta": "^0.0.9"
23
23
  },
24
24
  "devDependencies": {
25
25
  "bedrock-portal": "file:.",
package/src/index.js CHANGED
@@ -145,6 +145,7 @@ module.exports = class BedrockPortal extends EventEmitter {
145
145
 
146
146
  try {
147
147
  await this.updateConnection(connectionId);
148
+ await this.updateHandle(this.#createHandleBody('activity'));
148
149
  }
149
150
  catch (e) {
150
151
  debug('Failed to update connection, session may have been abandoned', e);
@@ -156,6 +157,8 @@ module.exports = class BedrockPortal extends EventEmitter {
156
157
  this.emit('rtaEvent', { type, subId, data });
157
158
  const session = await this.getSession();
158
159
 
160
+ debug('Received RTA event, session has been updated', session);
161
+
159
162
  const sessionMembers = Object.keys(session.members).map(key => session.members[key]).filter(member => member.constants.system.xuid !== this.sessionOwner.xuid);
160
163
  const xuids = sessionMembers.map(e => e.constants.system.xuid);
161
164