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

Pass multiple protocols in rfbOptions.wsProtocols #45

Closed devpilot closed 1 year ago

devpilot commented 1 year ago

Is there an existing issue for this?

Use case description

If I have multiple protocols to pass its not working out with wsProtocols: string. On noVnc they are accepting array for wsProtocols. this._wsProtocols = options.wsProtocols || []; https://github.com/novnc/noVNC/blob/295004cabe262367a4df32257d8eb8517bfc4ae1/core/rfb.js#L119

Proposed solution (optional)

Therefore I'm proposing to add wsOptions: string | string[] type in RFBOptions

roerohan commented 1 year ago

Hi @devpilot Thanks for reporting this issue! I see that you've made the aforementioned change on your fork, and I believe the change you made fixes the issue.

I made a PR for the change from your fork (#47), and I'll merge it into the main branch of this repository. Although I'll test it out on my own too, it would be great if you could confirm that the change works and doesn't break anything.

Thanks again for your contribution to the repository!

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 0.5.14 :tada:

The release is available on:

Your semantic-release bot :package::rocket: