First version of chat server and client