Skip to content

Blazor server side not close WebSocket on iframe destroy. #49487

Closed
@Planit-Scheduler-Solutions

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hi, I work with blazor server side(.net 6) for show small applications in my main application.
In my main applications (implement by angular) I open some popups that includes iframe that show the blazor apps.
After some work I found that the blazor on each load open a websocket but after I destroy the iframe this websockets never close(close only if I refresh the main application tab).
2

How can I stop the old WebSocket?

Expected Behavior

In my main application can be display only one blazor view in the same time, so I expect to see only one websocket in the network in the same time.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.area-blazorIncludes: Blazor, Razor Componentsquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions