diff options
| author | Kostya <mail@sartin.in> | 2026-10-15 11:40:05 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-10-15 11:40:30 +0300 |
| commit | 4563c9d6d6c1576b6fb45899c2b6d6073966d8b8 (patch) | |
| tree | 2138d35b626f7aadfa458a855722c8bd053cd815 /ui-fx | |
| parent | 6968a0105ad521d7b86b15555f8f627094a59725 (diff) | |
| download | guess-market-4563c9d6d6c1576b6fb45899c2b6d6073966d8b8.tar.gz guess-market-4563c9d6d6c1576b6fb45899c2b6d6073966d8b8.tar.xz guess-market-4563c9d6d6c1576b6fb45899c2b6d6073966d8b8.zip | |
server: add a chat shared by everyone logged in
Ex3 bonus. POST /api/chat says a line as the logged-in user and
GET /api/chat?since=N returns the lines after id N, so a polling client
only ever downloads what it has not seen. The last 500 lines are kept
in memory.
A chat line does not change the market, so the lock filter does not
bump the market version for it; otherwise every line would make every
client refetch all events.
Also read form fields as UTF-8 in the filter rather than relying on
Tomcat's default, since names and chat text may not be ASCII.
Diffstat (limited to 'ui-fx')
0 files changed, 0 insertions, 0 deletions