# hapi-seaport

> hapi plugin to create seaport client

Latest version **1.1.0** (published 2014-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install hapi-seaport
pnpm add hapi-seaport
yarn add hapi-seaport
bun add hapi-seaport
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2014-11-12 |
| First published | 2014-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sandfox |
| Maintainers | sandfox |
| Keywords | hapi, seaport |

## Links

- npm: https://www.npmjs.com/package/hapi-seaport
- Repository: https://github.com/Bizzby/node-hapi-seaport
- Issues: https://github.com/Bizzby/node-hapi-seaport/issues
- npm.io page: https://npm.io/package/hapi-seaport

## Dependencies (1)

- [seaport](https://npm.io/package/seaport.md) ^2.0.9

## Recent versions

- 1.1.0 (latest) — 2014-11-12
- 1.0.2 — 2014-11-12
- 1.0.1 — 2014-11-11
- 1.0.0 — 2014-11-11

## README

# hapi-seaport


Hapi plugin to create a shared seaport client. Blocks until synchronised

## Install
`npm install hapi-seaport [--save]`

## Usage
Load plugin into your Hapi server as normal.

```
var Hapi = require("hapi");

var seaportOpts = {
    "host": "localhost",
    "options": {
        //either
        "server": "tcp://blahblah.com:6573",
        //or
        "server": {
          "host": blahblah.com,
          "port": 6573
        },
        opts: "//standard seaport opts object"
    }
};

var server = new Hapi.Server(8080);

server.pack.register({
    plugin: require('hapi-seaport'),
    options: seaportOpts
  }, function () {}
});

```

The default opts are
```
{
  "server":"tcp://127.0.0.1:9090"
}
```

Supplying either a server object or string will override this default.



To access the client in other plugins, place this plugin first (plugins
are loaded in the order they're declared) then reference the client
like:

`seaport = plugin.plugins['hapi-seaport'].client`

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