Complete functional prototype (no server / sockets yet)