Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "unws", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"packageManager": "pnpm@8.3.0", | ||
"description": "Unified WebSocket API for Node.js, Bun and browser.", | ||
"description": "Unified WebSocket API for Node.js, Bun and modern browsers.", | ||
"license": "MIT", | ||
@@ -7,0 +7,0 @@ "homepage": "https://github.com/sxzz/unws#readme", |
@@ -5,2 +5,4 @@ # unws [](https://npmjs.com/package/unws) | ||
Unified WebSocket API for Node.js, Bun and modern browsers. | ||
## Install | ||
@@ -12,2 +14,10 @@ | ||
## Usage | ||
```ts | ||
import { WebSocket } from 'unws' | ||
const ws = new WebSocket('ws://localhost:8080') | ||
``` | ||
## Sponsors | ||
@@ -14,0 +24,0 @@ |
3430
32