livekit / livekit-react

React component and library for LiveKit
https://docs.livekit.io
Apache License 2.0
172 stars 63 forks source link

error could not establish signal connection - react livekit example #116

Closed qqqllppp closed 1 year ago

qqqllppp commented 1 year ago

Hi I am new to livekit and just started by trying the react livekit example.

https://example.livekit.io/

My livekit URL is ws://localhost:7880 (the default) and I generate the token via the cloud livekit dashboard:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NzI1NjM1NjQsImlzcyI6IkFQSXhMUHZhcDVOdVRnWSIsIm5iZiI6MTY3MjU2MjY2NCwic3ViIjoidGVzdDEiLCJ2aWRlbyI6eyJjYW5QdWJsaXNoIjp0cnVlLCJjYW5QdWJsaXNoRGF0YSI6dHJ1ZSwiY2FuU3Vic2NyaWJlIjp0cnVlLCJyb29tIjoidGVzdDEiLCJyb29tSm9pbiI6dHJ1ZX19.COc-Y-VD6ZNV5A_ryMCfKMQur8uFQsPHXOA7v57rA7E

I then click connect, and the next page shows this error:

error could not establish signal connection

Not sure what I am doing wrong

qqqllppp commented 1 year ago

use my livekit url from dashboard and after refreshing everything its working