Simple Tcp Chat With Simple Native Client
summary
Builds a real concurrent TCP chat: a JVM server and a Scala Native CLI client that share one binary protocol compiled once and used on both platforms. Uses the Typelevel stack: fs2 streams, scodec codecs and fs2-codec plus sbt cross-projects to share the protocol code. Server keeps a username→socket map and broadcasts messages; it uses fs2.io.Network.server and an uncons/pool-based handshake to require a username before handling messages. A deployed demo exists and mostly works live.
AI-written summary · about
