Chat is pretty trivial: Everybody logs into a server. One person types a line of text, and it replicates on everybody's computer.
It sounds like an exercise for a CS student's first TCP/IP program.
Is it just me, or does anyone else think that there's something wrong about the modern Web when a chat program taking 500kb (gzipped!) is an impressive technical achievement to be proud of?