fully working real-time chat application