Stream close is not working
axfree opened this issue · 1 comments
axfree commented
This simple test code hangs the process forever.
// pb.js
var PushBullet = require('pushbullet');
var pusher = new PushBullet(‘…’);
var stream = pusher.stream();
stream.on('connect', function() {
console.log('connected');
stream.close();
});
stream.on('close', function() {
console.log('closed');
});
stream.connect();
$ node pb.js
connected
<< process hangs here >>
alexwhitman commented
Fixed in 2.3.0. Thanks for the contribution in the PR.