MCPcopy Create free account
hub / github.com/11ty/dev-server / getPort

Method getPort

server.js:802–809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

800 }
801
802 async getPort() {
803 return new Promise(resolve => {
804 this.server.on("listening", (e) => {
805 let { port } = this._server.address();
806 resolve(port);
807 });
808 })
809 }
810
811 serve(port) {
812 this.getWatcher();

Callers 2

makeRequestToFunction · 0.80
fetchHeadersForRequestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected