pfinterfaceweb
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -43,3 +43,3 @@ var config = {} | ||
/*config.stomp = { | ||
config.stomp = { | ||
host : "localhost", | ||
@@ -54,3 +54,3 @@ port :61613, | ||
} | ||
}*/ | ||
} | ||
module.exports = config; |
@@ -85,10 +85,15 @@ // pfinterface | ||
stompClient.on('disconnected', function(){ | ||
stompdebug('disconnected from broker, trying to reconnect'); | ||
console.log("STOMP broker disconnected") | ||
stompdebug('disconnected from broker, trying to reconnect') | ||
pfint.removeAllListeners('route') | ||
pfint.removeAllListeners('memorySlot') | ||
pfint.removeAllListeners('customCommand') | ||
setTimeout( function() { stompClient.connect() } ,5000 ) | ||
}) | ||
stompClient.on('reconnected', function (){ | ||
stompdebug("reconnected"); | ||
console.log("STOMP broker reconnected") | ||
stompdebug("reconnected") | ||
}); | ||
stompClient.on('reconnecting', function (){ | ||
stompdebug("reconnecting"); | ||
stompdebug("reconnecting") | ||
}) | ||
@@ -119,3 +124,7 @@ } catch (err) | ||
}) | ||
pfint.on('connected', function () | ||
{ | ||
console.log("PathfinderPC Server Connected") | ||
}) | ||
// API methods coming right up | ||
@@ -122,0 +131,0 @@ var app = express() |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"description": "An interface to PathfinderPC exposing methods as a HTTP REST API. Also can optionally send messages to a STOMP compatible Message Queue server", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
427
24857
7