소스 검색

Merge pull request #607 from fresheneesz/patch-1

Improving the Receive example
Alex Sosnovskiy 5 년 전
부모
커밋
5e36ba17be
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      README.md

+ 3 - 0
README.md

@@ -41,6 +41,9 @@ peer.on('connection', (conn) => {
     // Will print 'hi!'
     console.log(data);
   });
+  conn.on('open', () => {
+    conn.send('hello!');
+  });
 });
 ```