A connection to cosimulation via socket.
socket
Will run disconnect when the cosimulation is over.
disconnect
CosimConnection(this.socket, {this.disconnect = _defaultDisconnect});