Closed tristanls closed 10 years ago
In order to fix this, we need contact.transport
to be optional (or preferably even disallowed) when calling discover.register(contact)
.
Implementation of tcpTransport.setTransportInfo(contact) now enables Discover to add correct transport
data to contact's upon registration.
Resolved as of afe5f84509e36964522823a503015320b4acb7a1
Requiring
contact.transport
when registering acontact
(as shown below) violates encapsulation when Discover is used by another library. The below excerpt from tristanls/tart-ansible/index.js#L59 illustrates the problem: