Skip to content

Commit e3d9e99

Browse files
authored
Update WebSocketServer.ts
1 parent 65916be commit e3d9e99

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

WebSocketServer.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,37 @@ export function WebSocketServer(options : Deno.ServeOptions | Deno.ServeTlsOptio
1010
return response
1111
})
1212
}
13+
14+
// export class WebSocketServer {
15+
// public CLOSED : number
16+
// public CLOSING : number
17+
// public CONNECTING : number
18+
// public OPEN : number
19+
20+
// public binaryType : BinaryType
21+
// public bufferedAmount : number
22+
// public extensions : string
23+
// public protocol : string
24+
// public readyState : number
25+
// public url : string
26+
27+
// public onclose : ((this: WebSocket, ev: CloseEvent) => any) | null
28+
// public onerror : ((this: WebSocket, ev: Event | ErrorEvent) => any) | null
29+
// public onmessage : ((this: WebSocket, ev: MessageEvent<any>) => any) | null
30+
// public onopen : ((this: WebSocket, ev: Event) => any) | null
31+
32+
// addEventListener<K extends keyof WebSocketEventMap>(
33+
// type : K | string,
34+
// listener : (this : WebSocket, ev : WebSocketEventMap[K]) => any | EventListenerOrEventListenerObject,
35+
// options? : boolean | AddEventListenerOptions,
36+
// ) : void {};
37+
// removeEventListener<K extends keyof WebSocketEventMap>(
38+
// type : K | string,
39+
// listener : (this: WebSocket, ev : WebSocketEventMap[K]) => any | EventListenerOrEventListenerObject,
40+
// options? : boolean | EventListenerOptions,
41+
// ) : void {};
42+
// dispatchEvent(event : Event) : boolean {};
43+
44+
// send(data : string | ArrayBufferLike | Blob | ArrayBufferView) : void {};
45+
// close(code? : number, reason? : string) : void {};
46+
// }

0 commit comments

Comments
 (0)