Skip to content

Commit 52f1606

Browse files
authored
Remove end listeners in examples
1 parent 2f6e4ee commit 52f1606

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

readme.md

-6
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ client.on('error', (err) => {
5252
client.pipe(commonXXXChannel).pipe(client);
5353

5454
var stream1 = client.open();
55-
stream1.on('end', () => {
56-
console.log('client disconnected');
57-
});
5855
stream1.on('data', (data) => {
5956
console.log('recv:', data.toString());
6057
});
@@ -73,9 +70,6 @@ var stream2 = client.open();
7370
var {Server} = require('yamux-js');
7471

7572
var server = new Server((stream) => {
76-
stream.on('end', () => {
77-
console.log('client disconnected');
78-
});
7973
stream.on('data', (data) => {
8074
console.log('recv:', data.toString());
8175
stream.write('Sending back data');

0 commit comments

Comments
 (0)