summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/websocket/lib.deno_websocket.d.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/websocket/lib.deno_websocket.d.ts b/ext/websocket/lib.deno_websocket.d.ts
index 81dcaffc0..af9026d41 100644
--- a/ext/websocket/lib.deno_websocket.d.ts
+++ b/ext/websocket/lib.deno_websocket.d.ts
@@ -34,7 +34,11 @@ interface WebSocketEventMap {
open: Event;
}
-/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
+/**
+ * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
+ *
+ * If you are looking to create a WebSocket server, please take a look at Deno.upgradeWebSocket().
+ */
declare class WebSocket extends EventTarget {
constructor(url: string, protocols?: string | string[]);