Skip to content

Expose javascript API #7

@ghost-458

Description

@ghost-458

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

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