mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
fix: notification pushes now match what the 2023 client reads
Most pushes were still shaped for the 2020 watch, so the 2023 client parsed them as empty or dropped them without any error. - RelationshipChanged carries the relationship row, to both players, on friend request / accept / remove / add and on favorite / mute / ignore. Friend requests and accepts also land in the notifications inbox. - ModerationKick uses the client's flat moderation block, with the reason in VoteKickReason (the only field the dialog shows). - Bans, account deletion, password resets and second-session takeover are a Logout with a numeric reason instead of a kick to the dorm; the old string reason failed the client's parse. - SubscribeToPlayers is honoured: each connection joins a presence group per subscribed player, and presence (only presence) reaches subscribers as well as friends. The hub allows 180 s of client silence, since the client reconnects at most 3 times per login. - Admin broadcast sends its text as a coach message and can start the client's own maintenance countdown; ServerMaintenance only reads StartsInMinutes. - ConsumableMapping, StorefrontBalance, gift, player event, level-up, RoomUpdate, profile-image and PlayerLeftChat pushes carry the client's DTOs. "Join rejected" is the client's RequestGameInvite message. Contract in docs/recroom-2023-notifications.md; push frames are checked by NotificationContractTests through a capturing hub context.
This commit is contained in:
@@ -38,10 +38,12 @@ What the 2023 client gets here that the 2020 branches don't have:
|
||||
`DorkNet.Server.Tests/ClientRouteCoverageTests.cs` fails the build if one
|
||||
regresses. Routes, verbs and wire shapes are in
|
||||
[docs/recroom-2023-client-api-complete.md](docs/recroom-2023-client-api-complete.md).
|
||||
- **Realtime over the SignalR hub** (`hub/v1` on the notify host): numeric
|
||||
push ids, presence updates to friends that honour each player's
|
||||
online-status visibility, and account updates when someone edits their
|
||||
profile.
|
||||
- **Realtime over the SignalR hub** (`hub/v1` on the notify host): every
|
||||
push matches the client's own reader — friends, messages, kicks and
|
||||
logouts, gifts, balances, consumables, player events, level-ups and
|
||||
account updates — and presence reaches both friends and any player who
|
||||
subscribed to you, honouring your online-status visibility:
|
||||
[docs/recroom-2023-notifications.md](docs/recroom-2023-notifications.md).
|
||||
- **Room saves and sub-rooms** through the storage host, plus cloning and
|
||||
private instances:
|
||||
[docs/recroom-2023-room-save.md](docs/recroom-2023-room-save.md).
|
||||
|
||||
Reference in New Issue
Block a user