Load user data before updating, prefer newer events in repository over old ones with the same created_at, add list update utils

This commit is contained in:
Jon Staab
2025-08-01 13:09:50 -07:00
parent bd67f2763d
commit 1f5f869f7c
9 changed files with 119 additions and 11 deletions
+8
View File
@@ -14,6 +14,14 @@ import {
} from "./message.js"
import {Socket, SocketStatus, SocketEvent} from "./socket.js"
import {AuthStatus, AuthStateEvent} from "./auth.js"
import {Unsubscriber} from "./util.js"
/**
* The contract for socket policies
* @param socket - a Socket object
* @return a cleanup function
*/
export type SocketPolicy = (socket: Socket) => Unsubscriber
/**
* Handles auth-related message management: