-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Supporting Blazor.WebAssembly 3.2.0 official release? #933
Comments
Hi, |
Hi, I'm not sure if this works at all in WebAssembly, at least UDP will have some problems, as it is only allowed to use within WebRTC. We should have the same problem in with generic TCP as this is only allowed with use in WebSocket. For more information Maybe there is a chance for using the client based on a WebSocket connection. Best regards |
@AztiIluna I tested the lib in a Blazor project and it works fine. as @vankooch already mentioned: You cannot use the TCP transport. I tested it with the Web Socket endpoint (WithWebSocketServer(...)) and it works. I will also test some more things but to me it works (general speaking). |
Hi everyone. Thanks for your replies. I will test using Web Socket as soon as I have time. |
I agree with @vankooch as well. In Blazor.WebAssembly, there is no way for TCP connections, only WebSockets. |
Describe your question
I have a Blazor.WebAssembly project with a ManagedClient. After starting the Client, I am not able to go further than the OnClientDisconnected event. The exception that I am getting is: "Operation is not supported on this platform.". I have another project with Blazor.Server and exactly the same code, and everything works fine. How is the support of the project with Blazor.WebAssembly?. I tested with:
-Blazor.WebAssembly 3.2.0 official release.
-MQTTnet 3.0.11.
-MQTTnet.Extensions.ManagedClient 3.0.11
Thank you in advance, and thank you very much for this awesome project.
Which project is your question related to?
The text was updated successfully, but these errors were encountered: