roerohan / react-vnc

A React Component to connect to a websockified VNC client using noVNC.
https://roerohan.github.io/react-vnc/
MIT License
88 stars 21 forks source link

fix(forwardRef): forward connect(), disconnect() and connected from VncScreen #20

Closed roerohan closed 2 years ago

roerohan commented 2 years ago

The methods connect() and disconnect(), and the state variable connected have been exposed to the user of the library with the help of React's forwardRef and userImperativeHandle functions.

To demonstrate the usage of this, a button Connect / Disconnect was added to the demo application in App.tsx.

closes #18

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 0.2.9 :tada:

The release is available on:

Your semantic-release bot :package::rocket: