@hadoku/game-server 0.1.194 → 0.1.196
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.
- package/dist/room/serve.d.ts +6 -0
- package/dist/room/serve.js +10 -0
- package/package.json +5 -5
package/dist/room/serve.d.ts
CHANGED
|
@@ -30,6 +30,12 @@
|
|
|
30
30
|
* same name, picture and character, and a rename reaches the other players' room list with
|
|
31
31
|
* nobody rejoining.
|
|
32
32
|
*
|
|
33
|
+
* `looks` is the same lookup for chat history: the room layer's one naming rule (`presentChat`,
|
|
34
|
+
* `@wolffm/rooms-server/chat`) names a line's author and its reactors from their connection while
|
|
35
|
+
* they are here, else from their account through `people`, so someone who has left reads as
|
|
36
|
+
* their current name rather than "Someone". It reads the cache (no `fresh`): one batched call
|
|
37
|
+
* per history page, and a stale name there is a name, not a wrong one.
|
|
38
|
+
*
|
|
33
39
|
* ## Who may join
|
|
34
40
|
*
|
|
35
41
|
* `admit` is the gate: the tier floor (the same one every socket applies), a key this app minted
|
package/dist/room/serve.js
CHANGED
|
@@ -30,6 +30,12 @@
|
|
|
30
30
|
* same name, picture and character, and a rename reaches the other players' room list with
|
|
31
31
|
* nobody rejoining.
|
|
32
32
|
*
|
|
33
|
+
* `looks` is the same lookup for chat history: the room layer's one naming rule (`presentChat`,
|
|
34
|
+
* `@wolffm/rooms-server/chat`) names a line's author and its reactors from their connection while
|
|
35
|
+
* they are here, else from their account through `people`, so someone who has left reads as
|
|
36
|
+
* their current name rather than "Someone". It reads the cache (no `fresh`): one batched call
|
|
37
|
+
* per history page, and a stale name there is a name, not a wrong one.
|
|
38
|
+
*
|
|
33
39
|
* ## Who may join
|
|
34
40
|
*
|
|
35
41
|
* `admit` is the gate: the tier floor (the same one every socket applies), a key this app minted
|
|
@@ -222,6 +228,10 @@ export async function attachServedRoom(io, deps) {
|
|
|
222
228
|
// made while their socket was down: a restart's resumed match fills it, and the chrome's
|
|
223
229
|
// `identity_update` for a pick made before the socket rejoined is dropped ("join the room
|
|
224
230
|
// first"), so this read is the only one that sees the pick.
|
|
231
|
+
async looks(accountIds) {
|
|
232
|
+
const found = await people.resolve(accountIds);
|
|
233
|
+
return new Map([...found].map(([id, person]) => [id, { name: person.name, sprite: person.sprite }]));
|
|
234
|
+
},
|
|
225
235
|
async account(accountId) {
|
|
226
236
|
const person = (await people.resolve([accountId], { fresh: true })).get(accountId);
|
|
227
237
|
if (person === undefined)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/game-server",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.196",
|
|
4
|
+
"gitHead": "b5239194b4ee158dc5648320e27c0e59565ee057",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "The server parts any hosted game shares, above the kernel: the app config and edge auth, the room core (identity, seats, sessions, membership, the room list, the generic room routes), match hosting (the host contract, local and remote JVMs, placement, the start queue, recordings, the in-process and relay runtimes), streams, erase, telemetry and usage. Knows no game; Magic plugs in from apps/server. MIT; imports only node built-ins, express, socket.io, @wolffm/* and the platform packages.",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"play/remote/"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.
|
|
21
|
-
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.
|
|
22
|
-
"@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.
|
|
20
|
+
"@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.196",
|
|
21
|
+
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.196",
|
|
22
|
+
"@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.229",
|
|
23
23
|
"@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.2.3",
|
|
24
24
|
"@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.150",
|
|
25
25
|
"@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.150",
|