Skip to content

fix: close prior REPL websocket on reconnect to stop duplicated output#230

Merged
tehn merged 1 commit into
monome:mainfrom
colinmcardell:fix/socket-leak
May 20, 2026
Merged

fix: close prior REPL websocket on reconnect to stop duplicated output#230
tehn merged 1 commit into
monome:mainfrom
colinmcardell:fix/socket-leak

Conversation

@colinmcardell
Copy link
Copy Markdown
Contributor

what

replConnect was opening a new WebSocket without closing prior connections. Each surviving socket kept receiving stdout and REPL output appeared duplicated (2x after one restart, 3x after two, etc.). This PR adds a replDisconnect action that closes the existing socket (if it exists) and detaches its handlers before dialing a new one.

@tehn tehn merged commit 24ec542 into monome:main May 20, 2026
1 check passed
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.

2 participants