Skip to content

[Bug] MyApp.Server (csproj) fails to make a ws connection when it launches. #1726

@psimoes123

Description

@psimoes123

Current behavior

When you create a new Uno platform app in visual studio and selects the Server option under 7. Features. Uno will create three csproj UnoApp, UnoApp.Contracts, UnoApp.Server. if you see the UnoApp to WebAssembly and the set the UnoApp.Server as a default startup project. A web browser will pop up and show the uno logo, but they application will get stuck there.

Upon opening the developers tool from the browser, I saw the following error in the console application.

Image

From my understanding it seems that it tries to create a ws (web socket) over the https connection which only accepts wss (web socket secure). So it immediately terminate the connection, which then causes the application to not load.

Expected behavior

I assume that the WebAssembly from the UnoApp proj should be able to create a https connection (wss) so that it matches with the Servers expectation.

Affected platforms

WebAssembly, Server

Template Host

Visual Studio

Host OS

Windows

Template Options

Default Recommended preset + Server option (7-Features)

Template Version

Uno Platform Extension 6.1.20.20

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingtriage/untriagedIndicates an issue requires triaging or verification.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions