How do I get the network connection of a game object in mirror

Can someone please tell me how to get the network connection of an object in Mirror. I’ve found very scant information about this on the web, and that seems really weird for a task like this that I’d imagine would be routine. Please help

Do you mean connection id of the client, or net id of the gameobject?

For connectionId:

int connectionId = NetworkClient.connection.connectionId;

For netId (on classes derived from NetworkBehaviour):

uint netId = this.netId;

It’s worth digging into the Mirror classes as they’re well commented.

I’ll give it a look