# hapi-socket

> A simple Hapi Socket.IO plugin.

Latest version **0.2.0** (published 2014-08-06) · MIT license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2014-08-06 |
| First published | 2014-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Sergey Rodovinsky |
| Maintainers | jeltok |
| Keywords | hapi, socket.io |

## Links

- npm: https://www.npmjs.com/package/hapi-socket
- Repository: https://github.com/jeltok/hapi-socket
- Issues: https://github.com/jeltok/hapi-socket/issues
- npm.io page: https://npm.io/package/hapi-socket

## Dependencies (2)

- [hoek](https://npm.io/package/hoek.md) 2.x.x
- [socket.io](https://npm.io/package/socket.io.md) 1.x

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2014-08-06

## README

hapi-socket
===========

Socket.IO plugin for Hapi

Sample usage code:

        server.pack.register({
            plugin: require('hapi-socket'),
            options: {
                messageHandler: function (socket) {
                    return function (message) {
                        console.log("Message sent!");
                        socket.send(message);
                    };
                },
                logLevel: 2
            }
        }, function (err) {
            server.start(function () {
                console.log("Hapi server started @ " + server.info.uri);
            });
        });

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