diff --git a/javascript/src/AmqpUniversalClient.js b/javascript/src/AmqpUniversalClient.js index fdca848..638d1f8 100644 --- a/javascript/src/AmqpUniversalClient.js +++ b/javascript/src/AmqpUniversalClient.js @@ -286,7 +286,7 @@ var amqpClientFunction=function(logInformation){ /** * Disconnects from Kaazing WebSocket AMQP Gateway */ - AmqpClient.disconnect=function(){ + AmqpClient.close=function(){ amqpClient.disconnect(); } diff --git a/javascript/src/JMSUniversalClient.js b/javascript/src/JMSUniversalClient.js index 9b6984c..a8d9420 100644 --- a/javascript/src/JMSUniversalClient.js +++ b/javascript/src/JMSUniversalClient.js @@ -91,7 +91,7 @@ var jmsClientFunction=function(logInformation){ /** * Closes the subscrpiption and releases all the resources. */ - close:function(){ + disconnect:function(){ if (this.subscribed){ this.closed.resolve(); } @@ -216,7 +216,7 @@ var jmsClientFunction=function(logInformation){ /** * Disconnects from Kaazing WebSocket JMS Gateway, closes all the subscription and releases all the resources. */ - JMSClient.disconnect=function(){ + JMSClient.close=function(){ for(var i=0;i