I took the service code and changed it to use WebSockets instead of a HubConnection.
The service starts up fine, and on the startup creates the Websocket
ClientWebSocket client = new();
In the OnStartCommand I try connecting the Socket to a wss endpoint
await client.ConnectAsync(new Uri("wss://mywssendpoint/"), cts.Token);
Interestingly, this line sits indefinitely. It does not appear to timeout or fail (e.g. in try-catch block).
This is with MAUI Blazor using .Net 7
Does anyone have any idea what might be wrong here?