Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When setting the SessionManager.userAgent it overrides the Callbacks and no callback are received for calls event #1104

@tamirn2

Description

@tamirn2

Describe the bug
when overriding the userAgent prop for SessionManager
const userAgent = new UserAgent(userAgentOptions); const sessionManager = new SessionManager(server); sessionManager.userAgent = userAgent; sessionManager.delegate = { onCallCreated: () => {console.log('onCallCreated')}, } as SessionManagerDelegate;

the onCallCreated won't be invoked

To Reproduce (if possible)
const userAgent = new UserAgent(userAgentOptions); const sessionManager = new SessionManager(server); sessionManager.userAgent = userAgent; sessionManager.delegate = { onCallCreated: () => {console.log('onCallCreated')}, } as SessionManagerDelegate;

Expected behavior
that the onCallCreated function will be invoked

Observed behavior
onCallCreated won't be invoked no matter what

Environment Information
All

Additional context
If I'll have time I'll create a PR for fixing this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions