drpc icon indicating copy to clipboard operation
drpc copied to clipboard

logging addresses

Open newhook opened this issue 3 years ago • 2 comments

I'd like to log address data on both the client & the server. Is that data currently accessible?

On the server side drpc.Stream doesn't seem to expose any method to do that.

On the client side I'm logging right now by wrapping a drpcconn.Conn, and at that point the server isn't known.

newhook avatar Nov 16 '22 17:11 newhook

The context returned from any stream has the transport available by using https://github.com/storj/drpc/tree/main/drpcctx#func--transport

You're not the first one to have trouble finding this. It should definitely be documented better. Do you have any suggestions on where you might expect this to be documented?

zeebo avatar Nov 18 '22 14:11 zeebo

An example would have enabled me to find it I think.

newhook avatar Dec 15 '22 02:12 newhook