jchristn / WatsonWebsocket

A simple C# async websocket server and client for reliable transmission and receipt of data
MIT License
277 stars 53 forks source link

After compiling net7.0 aot, the client cannot connect to the server #123

Closed williamlzw closed 1 year ago

williamlzw commented 1 year ago

.net7.0, vs2022, windows10 After compiling net7.0 aot, the client cannot connect to the server.

jchristn commented 1 year ago

Could you provide more detailed steps to reproduce? Sorry I'm not familiar with net7.0 aot.

williamlzw commented 1 year ago

image image

williamlzw commented 1 year ago

SuperSimpleTcp aot runs normally after compilation. It may be that Invoke does not support aot.

WarstekHUN commented 1 year ago

@williamlzw Have you already solved the problem? Maybe could you provide some code? Also, maybe you should try it without SSL. Have you tried it with JS from a web-browser? If you have, what was the error message you got?

williamlzw commented 1 year ago

Reflection does not support nativeaot