simple chat application using sockets