connects and sends message from client