Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose javascript API #7

Open
kevinhikaruevans opened this issue Oct 13, 2016 · 0 comments
Open

Expose javascript API #7

kevinhikaruevans opened this issue Oct 13, 2016 · 0 comments

Comments

@kevinhikaruevans
Copy link

It'd be nice if there was an API exported from the javascript version.

I'd like to just do something like this to start the server in my own application:

var websockify = require('websockify');

websockify.start({
   destinationPort: 4567,
   sourcePort: 1234
});

In es5 notation, you can just do something like:

module.exports = someObjectToExpose

@samhed samhed transferred this issue from novnc/websockify Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant