Skip to content

Fresh 2 + vite websocket not working on dev server #3554

@kitsonk

Description

@kitsonk

I have an application where I am trying to use a websocket and when running under the dev server with Fresh 2 and vite, the websocket connection is just "pending" and it is never received by the app, just gets swallowed, but a production build works as expected.

I can see the "dev" websocket for HMR connecting just fine.

I tried searching for wider issues related to vite and dev server, and I have looked at the Fresh 2 plugin, but I am not seeing anything that sounds right, so I opened this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions