0

I need to build an MQTTnet Broker/Server, that is spoken to through a website on e.g. wss://host.domain.tld/mqtt.

This is already working in .NET Core, like this:

app.UseEndpoints(endpoints =>
            {
                endpoints.MapConnectionHandler<MqttConnectionHandler>(
                    "/mqtt",
                    httpConnectionDispatcherOptions => httpConnectionDispatcherOptions.WebSockets.SubProtocolSelector =
                        protocolList =>
                            protocolList.FirstOrDefault() ?? string.Empty);
            });`

But now I am forced to run it on a .NET Framework 4.7.2 Application using an OWIN API Controller. Which I build, for testing purposes, following this small Microsoft guide: https://learn.microsoft.com/en-us/aspnet/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api

Is there any way to realize this?

0 Answers0