mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
docs(websockets): add comment about Deno.upgradeWebSocket()
This commit is contained in:
parent
6de53b631f
commit
3f241024cf
1 changed files with 5 additions and 1 deletions
6
ext/websocket/lib.deno_websocket.d.ts
vendored
6
ext/websocket/lib.deno_websocket.d.ts
vendored
|
@ -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[]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue