livekit / client-sdk-flutter

Flutter Client SDK for LiveKit
https://docs.livekit.io
Apache License 2.0
268 stars 132 forks source link

[WebSocketIO] error on running the example app on macos/android #637

Open Shiba-Kar opened 3 days ago

Shiba-Kar commented 3 days ago
flutter: 10:10:54: [WebSocketIO] did throw HandshakeException: Handshake error in client (OS Error: 
    WRONG_VERSION_NUMBER(tls_record.cc:231))

To Reproduce run the example app with local livekit server


livekit-server --dev --bind 0.0.0.0
2024-11-16T10:10:20.084+0530    INFO    livekit server/main.go:208      starting in development mode
2024-11-16T10:10:20.084+0530    INFO    livekit server/main.go:211      no keys provided, using placeholder keys        {"API Key": "devkey", "API Secret": "secret"}
2024-11-16T10:10:20.085+0530    INFO    livekit routing/interfaces.go:120       using single-node routing
2024-11-16T10:10:20.130+0530    INFO    livekit service/server.go:258   starting LiveKit server {"portHttp": 7880, "nodeID": "ND_CCnE9wNRXuGd", "nodeIP": "192.168.84.6", "version": "1.8.0", "bindAddresses": ["0.0.0.0"], "rtc.portTCP": 7881, "rtc.portUDP": {"Start":7882,"End":0}}
2024-11-16T10:10:20.130+0530    DEBUG   livekit service/signal.go:122   starting relay signal server    {"topic": "ND_CCnE9wNRXuGd"}

Flutter

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1 24B83 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.95.3)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

connecting using the url: wss://192.168.84.6:7880

bcherry commented 6 hours ago

@Shiba-Kar have you tried ws:// instead of wss:// in the URL?