aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-types/tests/ws.test-d.ts
blob: fdc4072af2403f38fa1527b590f6967d0fa55606 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { WebSocket, WebSocketServer } from "ws";

const ws = new WebSocket("ws://www.host.com/path");

ws.send("asdf");

const wss = new WebSocketServer({
  port: 8080,
  perMessageDeflate: false,
});
wss;