OnClientConnect was not called.

I am struggling with customizing my own network manager, and now it seems the client has connected to the server successfully, but the problem is the function OnClientConnect was not called (The Editor was working as a client, so I think something should have been printed.), while OnServerConnect was working well. Any idea?

Alright, I finally figured out what caused the problem myself. It turns out that if you have created
a handler by this, client.RegisterHandler(MsgType.Connect, OnConnected); this new handler would replace OnClientConnect() function.
Hope this would save your time.