Skip to content

Commit

Permalink
fix(rfb): expose rfb in VncScreen useImperativeHandle (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
roerohan authored Feb 26, 2022
1 parent 932cb06 commit 53af884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/VncScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type VncScreenHandle = {
connect: () => void;
disconnect: () => void;
connected: boolean;
rfb: RFB | null;
};

const VncScreen: React.ForwardRefRenderFunction<VncScreenHandle, Props> = (props, ref) => {
Expand Down Expand Up @@ -212,6 +213,7 @@ const VncScreen: React.ForwardRefRenderFunction<VncScreenHandle, Props> = (props
connect,
disconnect,
connected: connected.current,
rfb: rfb.current,
}));

useEffect(() => {
Expand Down

0 comments on commit 53af884

Please sign in to comment.