Skip to content

Fix: WebSocket and Hangup for web platform - #568

Open
himanshujjp wants to merge 1 commit into
flutter-webrtc:mainfrom
himanshujjp:main
Open

Fix: WebSocket and Hangup for web platform#568
himanshujjp wants to merge 1 commit into
flutter-webrtc:mainfrom
himanshujjp:main

Conversation

@himanshujjp

Copy link
Copy Markdown

Changes:

  • Updated WebSocket initialization to use sip.toJS on web for proper JavaScript compatibility.

  • Modified _handleHangup to differentiate behavior by platform:

    • Web: calls session.terminate()

    • Other platforms: calls hangup()

Why:

These changes prevent runtime errors on web and ensure that calls are properly terminated across all platforms.

@FabioCFonseca

Copy link
Copy Markdown

Hi,

Is there a timeline to merge this PR?

@himanshujjp

Copy link
Copy Markdown
Author

Hi,

Is there a timeline to merge this PR?

I’m not a maintainer, so I can’t provide a merge timeline. This PR has been open for a while.

@cloudwebrtc could you please review it when you get a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants