question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WS Connection Closes Automatically

See original GitHub issue

Hey, I know I’m missing something, but I can’t quite wrap my head around what it is. Right now, the client starts up but then immediately closes right after.

Here’s the logs from livekit-server:

image

And here’s my code:

<LiveKitRoom url={url} token={token} connectOptions={{logLevel: LogLevel.debug}} onConnected={room => onConnected(room)} onLeave={() => console.log('leaving the room')}

What am I doing wrong? I should mention that neither the onConnected or onLeave functions ever get called.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
davidzhaocommented, Aug 3, 2021

hah, I’m glad you figured it out. We should make it more explicit in the docs that ports need to be open on that IP.

Btw, Adalo looks awesome! If you ever want to incorporate video/audio modules into it, we can help 😃

0reactions
nuckscommented, Aug 3, 2021

I figured it out. I was using my public IP address instead of my private one when starting docker 🤦‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

websocket closing connection automatically - Stack Overflow
The client is the default websocket implementation in google chrome. Everything is working ok, only if there is no transfer between server and ......
Read more >
WebSocket.close() - Web APIs - MDN Web Docs
The WebSocket.close() method closes the WebSocket connection or connection attempt, if any. If the connection is already CLOSED, ...
Read more >
JavaScript : websocket closing connection automatically
JavaScript : websocket closing connection automatically [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] JavaScript : websocket ...
Read more >
WebSocket connection closes immediately · Issue #449 - GitHub
I found the issue and it was that when we terminate the connection the code was still normal. Fixed the issue elsewhere.
Read more >
Websocket connection closes after about 10s - Google Groups
I'm successfully creating a websocket connection from Chrome to Mongoose, and sending data both ways. After about 10s of inactivity, Mongoose reports that ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found