mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +00:00
d8be9a40e7
A socket was let into a trip room or a journey's book room with one access check and then trusted: delivery went by room membership alone. So a member removed from a trip kept receiving every broadcast of it on the socket they had already joined, a contributor taken off a journey kept the book's pointers and presence and could still send pointers, and a deleted account's sockets stayed in every room. The gateway now installs the checks its joins run, and every write that ends access asks the sockets already in again once it is committed and its own event went out: a member removed or leaving (REST, MCP and plugin RPC), a trip deleted, a contributor removed, a journey deleted, a trip's journal link replaced, narrowed or removed. Open books are asked again with every trip change, since a book can be open through a trip's journal. A socket that no longer passes leaves the room, and a book that loses somebody tells the others. A deleted account's sockets are closed. An answer that cannot be had counts as no access.