Skip to content

Commit

Permalink
Updated methods for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Smolgovsky committed Mar 14, 2016
1 parent 5e45ddb commit 7c01b4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion javascript/src/AmqpUniversalClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ var amqpClientFunction=function(logInformation){
/**
* Disconnects from Kaazing WebSocket AMQP Gateway
*/
AmqpClient.disconnect=function(){
AmqpClient.close=function(){
amqpClient.disconnect();
}

Expand Down
4 changes: 2 additions & 2 deletions javascript/src/JMSUniversalClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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<this.subscriptions.length;i++){
this.subscriptions[i].close();
}
Expand Down
2 changes: 1 addition & 1 deletion javascript/src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kaazing-javascript-universal-client",
"version": "1.0.1",
"version": "1.0.2",
"description": "JavaScript universal client for communication with AMQP and JMS brokers via Kaazing Gateway",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 7c01b4d

Please sign in to comment.