Failed when connecting: Connection closed (code: 1006) #36
-
Hi all, I have a working VNC server (tested in a vncviewer) that I want to attach to my React application. However, after pasting the demo code and fixing the "ref" issue, I got the error Does anybody know how can I fix this? I'm using the version 0.5.1 of react-vnc and react-scripts 4.0.3 (I can't jump to 5 due to incompatibilities of another key component of the application). Here is the code I'm using: import React, { useRef } from 'react' const Terminal = () => { return ( Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'd found a way to bypass the error. I had tightvnc and x11vnc in the VNC server (both works). Then I made a proxy between the pc with the react app and the vnc server using "noVNC". Finally, I pass to react-vnc the IP generated by the proxy. |
Beta Was this translation helpful? Give feedback.
I'd found a way to bypass the error. I had tightvnc and x11vnc in the VNC server (both works). Then I made a proxy between the pc with the react app and the vnc server using "noVNC". Finally, I pass to react-vnc the IP generated by the proxy.