The package is also going to be web based so that it can be used from the browser.
Maybe with a command such as:
npm browserify
We would also offer websocket support like:
const connection = await environment.createConnection({ host, port, username, password, useWebSocket: true })