Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 602284a

Browse files
committed
Merge pull request #39 from marcingasior/master
Add keep alive to socket
2 parents 3cfe13d + e3e5f8d commit 602284a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/stomp.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ function _setupListeners(stomp) {
137137

138138
var socket = stomp.socket;
139139

140+
socket.setKeepAlive(true);
141+
140142
socket.on('drain', function(data) {
141143
log.debug('draining');
142144
});

0 commit comments

Comments
 (0)