-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.net8 with bug cannot send msg #552
Comments
@ashyEmmm how you can trigger NetworkReceiveEvent without ConnectRequest and Connected events? |
this full code,if I switch from. net8 to. net6, then everything is normal.
unity code.The public methods of this class will be called elsewhere
|
@ashyEmmm well you bound only receive event. Better use INetEventListener and implement all methods in it like in unity example here https://github.com/RevenantX/LiteNetLib/blob/master/LiteNetLibSampleUnity/Assets/GameServer.cs Also in your case in WinForm you can use NetManager.UnsyncedEvents - in this case you don't need to spawn update thread. PollEvents will be called from library thread automatically. Also i don't see whats wrong. Can you write .net6 output and expected behaviour and .net8. |
@RevenantX Net8 should be like Net6 |
@ashyEmmm can you include minimal example project with bug? I tried your case in .net8 and cannot reproduce this |
@RevenantX Yes, I have also tried Net8 and it is not a problem. I also included a minimum example project And I found out that it actually triggered the reconnection behavior |
In .net8, when I send messages to Unity, I can only trigger the NetworkReceiveEvent event of Unity, but there is no such bug in. net6
Library version: [release version (1.2.0)]
Framework: [Mono, Unity, dotnetcore, .NET Framework]
OS: [Windows]
The text was updated successfully, but these errors were encountered: