Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Avoid auto-disconnect when inactive #318

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Avoid auto-disconnect when inactive #318

merged 1 commit into from
Jul 6, 2024

Conversation

fregante
Copy link
Owner

@fregante fregante commented Jul 6, 2024

I was able to reproduce the issue in Chrome + VSCode. This PR appears to fix it. Other editor plugins might need an update if they throw an error on unrecognized messages.

@fregante fregante added the bug label Jul 6, 2024
@fregante fregante changed the title Send keep-alive message Avoid auto-disconnect when inactive Jul 6, 2024
@fregante fregante merged commit 7456044 into main Jul 6, 2024
8 checks passed
@fregante fregante deleted the keepalive branch July 6, 2024 08:38
@erwin
Copy link

erwin commented Jul 29, 2024

Not sure if I'm getting the exact same issue, but also for me the connection drops off after approximately 30 seconds...

I am on Firefox for Linux Beta, 129.0b9
image

GhostText version 24.7.6 (released July 28th, 2024)
image

I made a screenrecording of what I'm seeing...
Right at ~30 seconds, the buffer that GhostText is operating on in neovim just drops.

GhostText.2024-07-29.10-08.mp4

(Just start at 30 seconds to see the buffer ghosttext is using disappear)

I am on the latest stable release of nvim:

nvim -V1 -v
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1720049189

Sure is a cool idea for a piece of software!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After recent upgrade, GhostText disconnects from editor after 30 seconds
2 participants