Server connect and disconnect is working