Package Exports
- connect-port
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (connect-port) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
connect-port
Resolve a promise when successfully connected to remote port.
Installation
npm install connect-port --save
Usage
const connectPort = require('connect-port')
connectPort(80, {
host: 'npmjs.com',
}).then(socket => {
console.log(socket.connecting)
})
// false
Related
- port-ready - Promise to wait until a port is ready to accept connection.