Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.
This repository was archived by the owner on Aug 24, 2023. It is now read-only.

Participant not disconnected from the Room when pressing the browser back button #111

@Mihai-github

Description

@Mihai-github

Hi,

I'm having some issues with LocalParticipant on pressing the browser back button still being connected to the room even though the docs say:

NOTE:

On some platforms (JavaScript and Swift), Room. disconnect is called automatically when the application exits

Even if I'm trying using useEffect unmount method to try to disconnect myself from the room I can see in the logs I'm connected to that room still.

The interesting thing is by pressing the LIvekit default end call button and doing this:

<LiveKitRoom
onLeave(async () => {
await roomCall?.disconnect();
history.push('/somewhere')
})
/>

I'm disconnected from the rooms so everything is ok, so there might be an issue here @lukasIO @davidzhao what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions