# connected

> Error first callback for listening on the server.

Latest version **0.0.2** (published 2014-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install connected
pnpm add connected
yarn add connected
bun add connected
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-07-04 |
| First published | 2013-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Arnout Kazemier |
| Maintainers | V1 |
| Keywords | connected, connect, listen, listening, error, online, up, up, and, away |

## Links

- npm: https://www.npmjs.com/package/connected
- Repository: git@github.com:3rd-Eden/connected
- Homepage: https://github.com/3rd-Eden/connected
- Issues: https://github.com/3rd-Eden/connected/issues
- npm.io page: https://npm.io/package/connected

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2014-07-04
- 0.0.1 — 2014-06-24
- 0.0.0 — 2013-05-25

## README

# connected

This module is born out of an annoyance with the Node core. Every method that
receives a callback is called using an error first callback. But this is not the
case with servers. When you tell the server to start listening on the given port
it can will `emit` an `error` event when it failed.

## Installation

```
npm install connected --save
```

## Usage

```js
var connected = require('connected')
  , http = require('http');

var app = http.createServer(function (req, res) {
  res.end('wobble wobble');
});

connected(app, 80, function (err) {
  // Received an error because we are not allowed to listen on port 80
});
```

And thats it.

## License

MIT

---
_Source: https://npm.io/package/connected · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
