Skip to content
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

Closed
AztiIluna opened this issue May 23, 2020 · 5 comments
Closed

Supporting Blazor.WebAssembly 3.2.0 official release? #933

AztiIluna opened this issue May 23, 2020 · 5 comments
Labels
question It is a question regarding the project

Comments

@AztiIluna
Copy link

AztiIluna commented May 23, 2020

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?

  • ManagedClient
@AztiIluna AztiIluna added the question It is a question regarding the project label May 23, 2020
@chkr1011
Copy link
Collaborator

Hi,
I will add a test Blazor project so that I can verify official support for it.
Best Regards
Christian

@vankooch
Copy link
Contributor

vankooch commented May 24, 2020

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

@chkr1011
Copy link
Collaborator

@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).

@AztiIluna
Copy link
Author

Hi everyone. Thanks for your replies. I will test using Web Socket as soon as I have time.

@SeppPenner
Copy link
Collaborator

I agree with @vankooch as well. In Blazor.WebAssembly, there is no way for TCP connections, only WebSockets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question It is a question regarding the project
Projects
None yet
Development

No branches or pull requests

4 participants