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

Enable WebSocket Support #1173

Closed
highwingers opened this issue May 31, 2021 · 2 comments
Closed

Enable WebSocket Support #1173

highwingers opened this issue May 31, 2021 · 2 comments
Assignees
Labels
question It is a question regarding the project

Comments

@highwingers
Copy link

Describe your question

I am able to connect to my MQTT Server hosted inside a Console App (using TCP port 1883), how do I enable my Console app to serve WebSockets as well? Basically I want both, TCP & We socket (Http) support.

Which project is your question related to?

  • Server
@highwingers highwingers added the question It is a question regarding the project label May 31, 2021
@chkr1011
Copy link
Collaborator

You need to create an ASPnet.Core application first. Then you can use MQTTnet to expose a WebSocket based connection.

@SeppPenner
Copy link
Collaborator

For the ASPnetCore application follow https://github.com/chkr1011/MQTTnet/wiki/Server#aspnet-core-integration and https://github.com/chkr1011/MQTTnet/wiki/Server#using-websockets-with-net50 for the setup and the WebSocket support. If you have concrete questions afterwards, you can contact us here again :)

@SeppPenner SeppPenner self-assigned this Aug 29, 2021
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

3 participants