Comments (2)
react-vnc/src/lib/VncScreen.tsx
Lines 74 to 75 in 01afe07
I just take the props and pass them in the noVNC library. When you used noVNC directly, can you show me your implementation that made it work? Maybe that will give me some insight into why this is failing.
from react-vnc.
In #26, I've exposed the rfb
object. So, if you have a code snippet like:
function App() {
const vncScreenRef = useRef<React.ElementRef<typeof VncScreen>>(null);
return (
<VncScreen
url={vncUrl}
scaleViewport
debug
ref={vncScreenRef}
/>
)
}
You can access the rfb
object using vncScreenRef.current?.rfb
. If the rfb
object isn't set, it's value is null
.
from react-vnc.
Related Issues (16)
- Fix failing `npm test` command, add CI action to run tests HOT 1
- Is there any possibility to pass password for VNC Server? HOT 1
- bug: typescript should be a dev dependency HOT 1
- How to disconnect a session ? HOT 3
- is this package work in react native app HOT 1
- Screenshot Feature HOT 2
- Rebooting or Shutting Down Host HOT 3
- Build a React wrapper around the `clipboard` event, and `clipboardPasteFrom` function HOT 1
- Make retry duration configurable HOT 1
- Accept rawChannel or url for VncScreen component HOT 2
- With scaleviewport set to true, vnc screen (sometimes) becomes empty, and needs window scale change to be visible HOT 1
- Pass multiple protocols in rfbOptions.wsProtocols HOT 2
- MouseLeave event triggered when clicking on the canvas embedded in the VncScreen component HOT 12
- Make it compatible with TS 5 HOT 4
- How to make Changes to React Component HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-vnc.