OnServerConnect is never called
See original GitHub issueFor some reason the function in UnityNetworkServer:
private void OnServerConnect(NetworkMessage netMsg)
is never called before:
private void OnReceiveAuthenticate(NetworkMessage netMsg)
So for any request from the client _connections is empty and all requests to the server fail.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
OnServerConnect is not called - Questions & Answers
Hi! I'm trying to call the OnServerConnect function when client connects. I simply have this code void OnServerConnect (){ Debug.
Read more >OnServerAddPlayer(NetworkConnection conn) Never ...
Ok I'm new to Playfab and am really struggling to get two players spawned into a room in Unity. I have a matchmaking...
Read more >NetworkManager.OnServerConnect - Scripting API
Called on the server when a new client connects. Unity calls this on the Server when a Client connects to the Server. Use...
Read more >Error 'No suitable method found to override' in Unity
I have included using Mirror , and the class inherits from Network Manager. Unity version 2021.3.5f1. I'd greatly appreciate any help! c# ...
Read more >Starting server/host after cancelling client connection ...
Disconnection is never called. The client is also observed to continue to try to connect despite cancellation -> if you cancel quickly and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Please see pull request with fix for this issue.
Closing because of #18