working chat server/client