0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

docs(websockets): add comment about Deno.upgradeWebSocket() for WebSocket servers (#13659)

This commit is contained in:
Surma 2022-02-13 13:47:46 +00:00 committed by GitHub
parent a5d204d425
commit 5e845442fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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[]);