holepunchto / hyperdht

The DHT powering Hyperswarm
https://docs.holepunch.to
MIT License
323 stars 46 forks source link

README.md encryptedConnection.on('open'), is this a mistake? #69

Closed Nuhvi closed 2 years ago

Nuhvi commented 2 years ago

In the readme

encryptedConnection.on('open')
Emitted when the encrypted connection has been fully established with the server.

I searched in hyperswarm/dht and secret-stream I can't see this even omitted, and I don't believe it is inherited from the Duplex either.

mafintosh commented 2 years ago

Yep client connections emit open. Part of the streamx state machine

mafintosh commented 2 years ago

They also emit “connect” as nodejs tcp compat

Nuhvi commented 2 years ago

Thanks