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.

Guide to properly starting live mode from an existing session already in progress

See original GitHub issue

I’m a little confused about the best way to start a live session in the replayer – at the moment, if a session is in the middle of being recorded and I start viewing in the middle of it, I can see the cursor but not the DOM.

My guess is that I’m missing a “full snapshot” at that point, but I’m not sure the best way to load a “full snapshot”?

I tried finding the most recent even with type == 2 (2 seems to be the full snapshot?), but that didn’t seem to fix it.

This is how I’m initializing the replayer:

this.replayer = new Replayer([], {root: root, liveMode: true});

this.replayer.startLive();

I’ve tried passing in all the existing events into Replayer (e.g. new Replayer(allPreviousEvents)), and that doesn’t seem to help.

I’ve also tried the following, with no luck:

allPreviousEvents.forEach((event) => this.replayer.addEvent(event));

Am I missing something?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wangkai0717commented, Oct 14, 2020

I have the same confusion. In live mode, if some previous events are played out and some new events are added, there is only a quick mouse movement path, and there is no DOM change.

0reactions
liujianchao1995commented, Jan 21, 2022

有没有完整的例子或文档以示例如何使用实时直播模式?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The ultimate live streaming guide for beginners | Livestream
Don't pause your dreams to live stream. Check out our beginner's guide on how to live stream and the equipment you need to...
Read more >
How do I set up xrdp session that reuses an existing session?
My xrdp always re-connects to existing session always using the same port. ... Run ps axf and look at the process tree for...
Read more >
Palo Alto Networks Firewall Session Overview
To view any information related to sessions the user can use the > show session command followed by the desired option: > show...
Read more >
Horizon View Desktops hanging on logoff preventing ...
When users login they receive the error: "The view agent reports that this desktop is currently logging off a previous session.
Read more >
Install and sign in to Live Share in Visual Studio Code
Learn how to install and sign in to Visual Studio Code and Live Share so that you can collaborate on projects with your...
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