Skip to content

Commit

Permalink
Remove end listeners in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ch authored Jan 3, 2025
1 parent 2f6e4ee commit 52f1606
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ client.on('error', (err) => {
client.pipe(commonXXXChannel).pipe(client);

var stream1 = client.open();
stream1.on('end', () => {
console.log('client disconnected');
});
stream1.on('data', (data) => {
console.log('recv:', data.toString());
});
Expand All @@ -73,9 +70,6 @@ var stream2 = client.open();
var {Server} = require('yamux-js');

var server = new Server((stream) => {
stream.on('end', () => {
console.log('client disconnected');
});
stream.on('data', (data) => {
console.log('recv:', data.toString());
stream.write('Sending back data');
Expand Down

0 comments on commit 52f1606

Please sign in to comment.