Skip to content

1.0.4

Compare
Choose a tag to compare
@Javascipt Javascipt released this 28 Jan 08:35
· 8 commits to master since this release

Https is here !

We now support the https protocol. For now the structure of the result you get from the transfer.to() method is the following ;

var transfer = require('transfer');

transfer.to('http://localhost:8080')
  .then(result => {
    console.log(result); 
    /* { token      : '2KFQNpM', 
         url        : '2KFQNpM.transfer.pub', 
         pathUrl    : 'path.transfer.pub/2KFQNpM',
         protocols  : ['http', 'https'] } */
  });