Both clients and servers now handle connecting and disconnecting