only sends message if server is connected in Server