We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0eb49 commit ad2cc9aCopy full SHA for ad2cc9a
src/use/ws.ts
@@ -1,5 +1,6 @@
1
import type * as http from 'http';
2
import type WebSocket from 'ws';
3
+import type { WebSocketServer } from 'ws';
4
import {
5
CloseCode,
6
ConnectionInitMessage,
@@ -9,10 +10,9 @@ import {
9
10
import { handleProtocols, makeServer, ServerOptions } from '../server';
11
import { limitCloseReason } from '../utils';
12
-export type WebSocketServer = WebSocket.Server;
13
14
// for nicer documentation
15
-export type { WebSocket };
+export type { WebSocket, WebSocketServer };
16
17
/**
18
* The extra that will be put in the `Context`.
0 commit comments