telnet chat application using 'net' and 'events' module