Tutorial: fdc3.leaveCurrentChannel

fdc3.leaveCurrentChannel

Removes all connections at the given identity (or just one if endpointId provided) from channel contextGroupId. If no target is specified, it removes the sender from their channel.

This is a wrapper for interop.removeFromContextGroup.

Example

removeViewFromChannel = async (view) => {
    await fdc3.leaveCurrentChannel(view);
}

getLastFocusedView()
    .then(lastFocusedViewIdentity => {
        removeViewFromChannel(lastFocusedViewIdentity);
    })