# lobby-server

> A small wrapper around websockets that handles realtime connections to online lobbies

Latest version **1.7.1** (published 2020-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install lobby-server
pnpm add lobby-server
yarn add lobby-server
bun add lobby-server
```

## 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.7.1 |
| Published | 2020-09-07 |
| First published | 2020-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bradley Stevanus |
| Maintainers | bradstevanus1 |
| Keywords | realtime, websocket, tcp, socket.io, online |

## Links

- npm: https://www.npmjs.com/package/lobby-server
- Repository: https://github.com/bradstevanus1/lobby-server
- Homepage: https://github.com/bradstevanus1/lobby-server#readme
- Issues: https://github.com/bradstevanus1/lobby-server/issues
- npm.io page: https://npm.io/package/lobby-server

## Dependencies (2)

- [express](https://npm.io/package/express.md) ^4.17.1
- [socket.io](https://npm.io/package/socket.io.md) ^2.3.0

## 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

- 1.7.1 (latest) — 2020-09-07
- 1.7.0 — 2020-09-07
- 1.6.0 — 2020-09-07
- 1.5.0 — 2020-09-07
- 1.3.0 — 2020-09-07
- 1.2.0 — 2020-09-07
- 1.1.0 — 2020-09-06
- 1.0.0 — 2020-09-06

## README

# lobby-server

A small wrapper around websockets that handles realtime connections to online lobbies. The [lobby-client](https://www.npmjs.com/package/lobby-client "Lobby Client NPM Package") is used to connect clients to lobbies on this server.

## Installation

```bash
npm install lobby-server
```

## Usage

```javascript
// Create a Node.js HTTP server (with Express in this case)
const app = require("express")();
const http = require("http").createServer(app);

// Start the socket.io server that handles websocket requests from the client
require("lobby-server")(http);

// Listen on a port. This port must be specified when connecting with the client.
http.listen(3000);
```

## Contributing

Pull requests are welcome. An issue can be opened for larger changes.

## License

[MIT](https://choosealicense.com/licenses/mit/)

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