When I save files my websocket connection changes and breaks incoming messages #18960
Unanswered
iaminamcom
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I'm using useWebSocket and I want to connect with local python server via websocket connection. It works fine until I save any file because when I save all incoming messages become empty.
Reproduction
https://stackblitz.com/edit/vitejs-vite-tgf18a?file=src%2FApp.tsx
Steps to reproduce
You need a websocket connection unfortunately I can't share mine. But I've attached the screen recording of the condition.
In the screen recording I've shared the bug which arises when I refresh the page, you can see all
Uint8Array
in browser console are correct but when I saved file in editor byctrl+s
you'll noticeUint8Array
became 0 bytes for some reasons. I can confirm server is send same data.Recording.2024-12-13.220253.mp4
System Info
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions