You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
userdocs 3b9ba1bf6f Fix broken link in README.md 5 years ago
..
API.md Force ssh connection (#226) 5 years ago
README.md Fix broken link in README.md 5 years ago
apache.md Feature/remediation (#162) 5 years ago
auto-login.md Feature/remediation (#162) 5 years ago
development.md Feature/remediation (#162) 5 years ago
docker.md Feature/remediation (#162) 5 years ago
downloading-files.md Rename downloading-file.md to downloading-files.md (#211) 5 years ago
flags.md Feature/remediation (#162) 5 years ago
https.md Feature/remediation (#162) 5 years ago
nginx.md Feature/remediation (#162) 5 years ago
service.md Feature/remediation (#162) 5 years ago
terminal.png Feature/remediation (#162) 5 years ago

README.md

Docs

WeTTy

API

For WeTTy options and event details please refer to the api docs

Getting started

WeTTy is event driven. To Spawn a new server call wetty.start() with no arguments.

const wetty = require('wetty.js');

wetty
  .on('exit', ({ code, msg }) => {
    console.log(`Exit with code: ${code} ${msg}`);
  })
  .on('spawn', msg => console.log(msg));
wetty.start(/* server settings, see Options */).then(() => {
  console.log('server running');
  /* code you want to execute */
});