ipfsd-ctl
Version:
Spawn IPFS Daemons, JS or Go
31 lines • 779 B
JavaScript
/* eslint-disable no-console */
/**
* Creates an instance of Server
*/
class Server {
constructor(options = { port: 43134, host: 'localhost' }) {
this.options = options;
this.port = this.options.port ?? 43134;
this.host = this.options.host ?? 'localhost';
console.warn('Server not implemented in the browser');
}
/**
* Start the server
*
* @returns {Promise<Server>}
*/
async start() {
console.warn('Server not implemented in the browser');
return this;
}
/**
* Stop the server
*
* @returns {Promise<void>}
*/
async stop() {
console.warn('Server not implemented in the browser');
}
}
export default Server;
//# sourceMappingURL=server.browser.js.map