# pyrite-connect-emitter

> Pyrite Connect Emitter

Latest version **0.1.0** (published 2017-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install pyrite-connect-emitter
pnpm add pyrite-connect-emitter
yarn add pyrite-connect-emitter
bun add pyrite-connect-emitter
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-10-23 |
| First published | 2017-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Fabio Garcia |
| Maintainers | fagarbal |

## Links

- npm: https://www.npmjs.com/package/pyrite-connect-emitter
- Repository: https://github.com/pyrite-framework/pyrite-connect-emitter
- Homepage: https://github.com/pyrite-framework/pyrite-connect-emitter#readme
- Issues: https://github.com/pyrite-framework/pyrite-connect-emitter/issues
- npm.io page: https://npm.io/package/pyrite-connect-emitter

## Dependencies (5)

- [mithril](https://npm.io/package/mithril.md) ^1.1.5
- [@types/mithril](https://npm.io/package/@types/mithril.md) ^1.1.10
- [pyrite-connect](https://npm.io/package/pyrite-connect.md) ^0.1.0
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.0.3
- [@types/socket.io-client](https://npm.io/package/@types/socket.io-client.md) ^1.4.31

## Recent versions

- 0.1.0 (latest) — 2017-10-23
- 0.0.3 — 2017-10-22
- 0.0.2 — 2017-10-18
- 0.0.1 — 2017-10-18

## README

# pyrite-connect

## Install

```
npm install pyrite-connect
npm install pyrite-connect-emitter
```

## Example

```typescript
import { PyriteConnect } from "pyrite-connect";
import { EmitterPlugin } from "pyrite-connect-emitter";

const connect = new PyriteConnect({
  url: 'http://localhost:8080',
  plugins: [new EmitterPlugin()]
});

connect.getRoutes()
.then((routes) => {
  routes.Users.on.createUser((data, id) => {
    console.log(data, id);

    routes.Users.off.createUser();
  });
});
```

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