diff --git a/index.js b/index.js index 71dbc21..1c6b8ee 100644 --- a/index.js +++ b/index.js @@ -54,6 +54,13 @@ new function() { var onClose = function() { console.log('CLOSED: ' + serverUrl.val()); ws = null; + connectionStatus.text('CLOSED'); + + serverUrl.removeAttr('disabled'); + connectButton.show(); + disconnectButton.hide(); + sendMessage.attr('disabled', 'disabled'); + sendButton.attr('disabled', 'disabled'); }; var onMessage = function(event) { diff --git a/manifest.json b/manifest.json index 382f999..c6822ab 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Simple WebSocket Client", "manifest_version": 2, - "version": "0.1.3", + "version": "0.1.4", "description": "Construct custom Web Socket requests and handle responses to directly test your Web Socket services.", "icons": { "16": "resources/icon_032.png",