# @bungohan/transport

> WebSocket transport for Bungohan servers, built on Bun.serve()

Latest version **0.1.0-alpha.3** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bungohan/transport
pnpm add @bungohan/transport
yarn add @bungohan/transport
bun add @bungohan/transport
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

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

## Facts

| | |
|---|---|
| Version | 0.1.0-alpha.3 |
| Published | 2026-09-24 |
| First published | 2026-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | gegehprast |
| Keywords | bungohan, multiplayer, game-server, realtime, websocket, transport, bun |

## Links

- npm: https://www.npmjs.com/package/@bungohan/transport
- Repository: https://github.com/gegehprast/bungohan
- Homepage: https://github.com/gegehprast/bungohan/tree/main/packages/transport#readme
- Issues: https://github.com/gegehprast/bungohan/issues
- npm.io page: https://npm.io/package/@bungohan/transport

## 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.1.0-alpha.3 (latest) — 2026-09-24
- 0.1.0-alpha.2 — 2026-09-24
- 0.1.0-alpha.1 — 2026-09-22

## README

# @bungohan/transport

The WebSocket transport of [Bungohan](https://github.com/gegehprast/bungohan/blob/main/docs/README.md), built on
`Bun.serve()`. It accepts connections, negotiates the subprotocol, and
hands core a socket it can write binary frames to.

```sh
bun add @bungohan/transport
```

Requires Bun 1.3.3 or newer. [`@bungohan/core`](https://github.com/gegehprast/bungohan/blob/main/packages/core/README.md) depends
on it and configures it so `transport: { config: { port: 6060 } }`
is all a normal server needs.

Install it directly only to implement `ITransport` against it, or to serve
your own HTTP routes from the same server. See the
[production guide](https://github.com/gegehprast/bungohan/blob/main/docs/guides/production.md) and the
[option reference](https://github.com/gegehprast/bungohan/blob/main/docs/reference.md).

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