ipfsd-ctl
Version:
Spawn IPFS Daemons, Kubo or...
30 lines • 732 B
JavaScript
/* eslint-disable no-console */
/**
* Creates an instance of Server
*/
class Server {
options;
port;
host;
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
*/
async start() {
console.warn('Server not implemented in the browser');
return this;
}
/**
* Stop the server
*/
async stop() {
console.warn('Server not implemented in the browser');
}
}
export default Server;
//# sourceMappingURL=server.browser.js.map