Skip to content

Commit

Permalink
fix(ws): use new types for ws library
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizmarc committed Oct 25, 2024
1 parent c030ed1 commit 5b1c31d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/use/ws.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type * as http from 'http';
import type * as ws from 'ws';
import type { WebSocket, WebSocketServer } from 'ws';
import { handleProtocols, makeServer, ServerOptions } from '../server';
import {
DEPRECATED_GRAPHQL_WS_PROTOCOL,
Expand All @@ -9,10 +9,6 @@ import {
} from '../common';
import { limitCloseReason } from '../utils';

// for nicer documentation
type WebSocket = typeof ws.prototype;
type WebSocketServer = ws.Server;

/**
* The extra that will be put in the `Context`.
*
Expand Down

0 comments on commit 5b1c31d

Please sign in to comment.