How do you get NetworkServer/NetworkClient objects when using Network Manager?

When using the NetworkManager component, how do you get the NetworkServer or NetworkClient objects they are using? I ask because I want to call RegisterHandler on them to add additional network messages. I’ve only gotten this to work when creating servers and clients in code rather than using the NetworkManager component.

NetworkServer.RegisterHandler on the server, NetworkManager.client.RegisterHandler on the client

I have the same original question. Thanks thegreatzebadiah but you misunderstood. Would appreciate anyone reading this to read the question again :slight_smile: Are me and Joe thinking about this the wrong way? I figure: why create a new NetworkServer when the NetworkManager already has one set up?

TANKS

Edit: Doh, apologies to all concerned! Because it’s a singleton you CAN jump right in with
NetworkServer.RegisterHandler.

Sorry!

Yep I had the same confusion. Too used to using GetComponent and then using a public property/method to get things done.