Skip to content

Commit 6850a47

Browse files
authored
Update WebSocketServer.ts
1 parent 3ff08d4 commit 6850a47

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

WebSocketServer.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,47 +12,3 @@ export function WebSocketServer(options : Deno.ServeOptions | Deno.ServeTlsOptio
1212
return response
1313
})
1414
}
15-
16-
// WebSocketServer({port: 8081}, (webSocket) => {
17-
// webSocket.addEventListener('open', () => {
18-
// console.log('WebSocket open!');
19-
// webSocket.send('Ping from Server!');
20-
// })
21-
// webSocket.addEventListener('message', (event) => {
22-
// console.log(event);
23-
// })
24-
// })
25-
26-
// export class WebSocketServer {
27-
// public CLOSED : number
28-
// public CLOSING : number
29-
// public CONNECTING : number
30-
// public OPEN : number
31-
32-
// public binaryType : BinaryType
33-
// public bufferedAmount : number
34-
// public extensions : string
35-
// public protocol : string
36-
// public readyState : number
37-
// public url : string
38-
39-
// public onclose : ((this: WebSocket, ev: CloseEvent) => any) | null
40-
// public onerror : ((this: WebSocket, ev: Event | ErrorEvent) => any) | null
41-
// public onmessage : ((this: WebSocket, ev: MessageEvent<any>) => any) | null
42-
// public onopen : ((this: WebSocket, ev: Event) => any) | null
43-
44-
// addEventListener<K extends keyof WebSocketEventMap>(
45-
// type : K | string,
46-
// listener : (this : WebSocket, ev : WebSocketEventMap[K]) => any | EventListenerOrEventListenerObject,
47-
// options? : boolean | AddEventListenerOptions,
48-
// ) : void {};
49-
// removeEventListener<K extends keyof WebSocketEventMap>(
50-
// type : K | string,
51-
// listener : (this: WebSocket, ev : WebSocketEventMap[K]) => any | EventListenerOrEventListenerObject,
52-
// options? : boolean | EventListenerOptions,
53-
// ) : void {};
54-
// dispatchEvent(event : Event) : boolean {};
55-
56-
// send(data : string | ArrayBufferLike | Blob | ArrayBufferView) : void {};
57-
// close(code? : number, reason? : string) : void {};
58-
// }

0 commit comments

Comments
 (0)