<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guess-market/api/src/main/java/market/guess/model/chat, branch 4.0</title>
<subtitle>definitely not polymarket
</subtitle>
<id>https://git.sartin.in/guess-market/atom?h=4.0</id>
<link rel='self' href='https://git.sartin.in/guess-market/atom?h=4.0'/>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/'/>
<updated>2026-10-15T08:40:30Z</updated>
<entry>
<title>server: add a chat shared by everyone logged in</title>
<updated>2026-10-15T08:40:30Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-15T08:40:05Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=4563c9d6d6c1576b6fb45899c2b6d6073966d8b8'/>
<id>urn:sha1:4563c9d6d6c1576b6fb45899c2b6d6073966d8b8</id>
<content type='text'>

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.


</content>
</entry>
</feed>
