Skip to content

Commit e56d518

Browse files
save file
1 parent 3ee0b82 commit e56d518

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
4+
(()=>{
5+
6+
var ws = new WebSocket('https://localhost:8443/');
7+
ws.onopen = e=>{console.log('ws.onopen');ws.send('hello')};
8+
ws.onclose = e=>console.log('ws.onclose');
9+
ws.onerror = e=>console.log('ws.onerror');
10+
ws.onmessage = ({data})=>console.log('ws.onmessage',data);
11+
12+
})();
13+
14+

0 commit comments

Comments
 (0)