Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sxzz/unws
- Owner: sxzz
- License: mit
- Created: 2023-04-19T10:30:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-08T19:09:08.000Z (16 days ago)
- Last Synced: 2024-12-08T20:20:50.172Z (16 days ago)
- Language: JavaScript
- Homepage:
- Size: 233 KB
- Stars: 32
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)