Thanks to visit codestin.com
Credit goes to github.com

Skip to content

make hls speak websocket #4666

New issue

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

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

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Conversation

MangoIV
Copy link
Contributor

@MangoIV MangoIV commented Jul 17, 2025

try it out in combination with https://github.com/MangoIV/hls-playground by running that with npm run dev and this with cabal run -f-cabal -f-dynamic exe:haskell-language-server -- -d ws

MangoIV added 6 commits July 16, 2025 15:06
This is the right thing to do because othewise it is not possible to
create new ideStates in a single instance of the executable. This will
be useful if the hls executable is supposed to talk to multiple clients
and lives beyond a single client disconnecting.
Previously, when there was no shutdown message by a client and the
client disconnected, resulting in the handlers to be GC'd the race that
was supposed to free resources for the HieDB & co. would throw a hard
error talking about the MVar being unreachable. We would like to instead
finish gracefully because finishing the race as soon as the MVar was
GC'd is the right thing to do anyway.
@MangoIV MangoIV changed the title Mangoiv/websocket make hls speak websocket Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant