Skip to content

Expose javascript API #7

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions