Module userland.web.routes.chat
Web chat
Global variables
var REFRESH_THRESHOLD
-
Number of seconds for CSRF token refresh
var TOKEN_EXPIRY
-
Number of seconds for CSRF token expiration
Functions
def chat(user: Annotated[User, Depends(login_user)], request: starlette.requests.Request) ‑> sse_starlette.sse.EventSourceResponse
-
Server-sent events for chat EventSource.
async def post_chat(message: ChatPost, user: Annotated[User, Depends(login_user)]) ‑> None
-
Post a chat message.
Args
message
- The message object being posted.