Skip to content

Commit 92852ff

Browse files
committed
updates to support iojs
- added socket.on('error') - added socket keep alive.
1 parent c121615 commit 92852ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/stomp.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ var Stomp = module.exports = function () {
361361
*/
362362
var setupListeners = function () {
363363

364+
socket.setKeepAlive(true);
365+
socket.on('error', function(err){
366+
log.debug('error: ' + err);
367+
});
364368
socket.on('drain', function (data) {
365369
log.debug('on drain');
366370
});

0 commit comments

Comments
 (0)