Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sxzz/unws

Unified WebSocket API for Node.js, Bun and modern browsers.
https://github.com/sxzz/unws

Last synced: 7 days ago
JSON representation

Unified WebSocket API for Node.js, Bun and modern browsers.

Awesome Lists containing this project

README

        

# unws [![npm](https://img.shields.io/npm/v/unws.svg)](https://npmjs.com/package/unws)

[![Unit Test](https://github.com/sxzz/unws/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sxzz/unws/actions/workflows/unit-test.yml)

Unified WebSocket API for Node.js, Bun and [modern browsers](https://caniuse.com/websockets).

## Install

```bash
npm i unws
```

## Usage

```ts
import { WebSocket } from 'unws'

const ws = new WebSocket('ws://localhost:8080')
```

## Sponsors





## License

[MIT](./LICENSE) License © 2023 [三咲智子](https://github.com/sxzz)