From 5ef5d768b91da18388036264b24165306f762c1f Mon Sep 17 00:00:00 2001 From: FreakyCoder Date: Mon, 22 Oct 2018 11:52:45 +0300 Subject: [PATCH 1/3] Reconnect and Autodisconnect features are implemented. Bugs are fixed. --- README.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6c701a0..536b27b 100644 --- a/README.md +++ b/README.md @@ -26,16 +26,8 @@ alt="Downloads">

- - - - - - -Swift 4.0 Swift 3.0 @@ -44,6 +36,10 @@ alt="Swift 3.0"> Pod Version + + +

@@ -202,6 +198,22 @@ socketClient?.subscribeWithHeader(destination: destination, withHeader: header) socketClient?.unsubscribe(destination: subsId) ``` +## Auto Reconnect with a given time +You can use this feature if you need to auto reconnect with a spesific time or it will just try to reconnect every second. + +```ruby +// Reconnect after 4 sec +socketClient.reconnect(request: NSURLRequest(url: url as URL) , delegate: self as StompClientLibDelegate, time: 4.0) +``` + +## Auto Disconnect with a given time + +```ruby +// Auto Disconnect after 3 sec +socketClient.autoDisconnect(time: 3) +``` + + ## Future Enhancements - [x] Complete a working Example From 149052ac9cb6945c1a65b7fcb01c94a7b60692ad Mon Sep 17 00:00:00 2001 From: FreakyCoder Date: Mon, 22 Oct 2018 11:55:29 +0300 Subject: [PATCH 2/3] Reconnect and Autodisconnect features are implemented. Bugs are fixed. Update ReadME --- CHANGELOG.md | 10 ++++++++++ README.md | 14 +++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23033bd..9ad9487 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## [1.2.5](https://github.com/wrathchaos/StompClientLib/tree/1.2.5) (2018-10-22) +[Full Changelog](https://github.com/wrathchaos/StompClientLib/compare/1.2.4...1.2.5) + +**Closed issues:** + +- Value for "message-id" is always "1" [\#22](https://github.com/WrathChaos/StompClientLib/issues/22) +- Multiple subscription to topics [\#20](https://github.com/WrathChaos/StompClientLib/issues/20) +- I think there is a memory leak for the delegate [\#19](https://github.com/WrathChaos/StompClientLib/issues/19) +- Getting error when framwork is installed in Objective c project [\#9](https://github.com/WrathChaos/StompClientLib/issues/9) + ## [1.2.4](https://github.com/wrathchaos/StompClientLib/tree/1.2.4) (2018-10-17) [Full Changelog](https://github.com/wrathchaos/StompClientLib/compare/1.2.3...1.2.4) diff --git a/README.md b/README.md index 536b27b..d225ae7 100644 --- a/README.md +++ b/README.md @@ -225,8 +225,20 @@ socketClient.autoDisconnect(time: 3) - [ ] Re-write websocket full swift version instead of Facebook's SocketRocket lib # Change Log + +> +> ## [1.2.5](https://github.com/wrathchaos/StompClientLib/tree/1.2.5) (2018-10-22) +> [ Full Changelog](https://github.com/wrathchaos/StompClientLib/compare/1.2.4...1.2.5) +> +> **Closed issues:** +> +> - Value for "message-id" is always "1" [\#22](https://github.com/WrathChaos/StompClientLib/issues/22) +> - Multiple subscription to topics [\#20](https://github.com/WrathChaos/StompClientLib/issues/20) +> - I think there is a memory leak for the delegate [\#19](https://github.com/WrathChaos/StompClientLib/issues/19) +> - Getting error when framwork is installed in Objective c project [\#9](https://github.com/WrathChaos/StompClientLib/issues/9) +> > -> ## [1.2.4](https://github.com/wrathchaos/StompClientLib/tree/1.2.4) (2018-10-17) +> ## [1.2.4](https://github.com/wrathchaos/StompClientLib/tree/1.2.4) (2018-10-17) > [Full Changelog](https://github.com/wrathchaos/StompClientLib/compare/1.2.3...1.2.4) > > **Closed issues:** From 160645d801b83a38dbf9a904d8152f0c66ed2972 Mon Sep 17 00:00:00 2001 From: FreakyCoder Date: Tue, 23 Oct 2018 17:16:54 +0300 Subject: [PATCH 3/3] Version 1.2.6 --- Example/StompClientLib/ViewController.swift | 2 +- StompClientLib.podspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Example/StompClientLib/ViewController.swift b/Example/StompClientLib/ViewController.swift index 8028c75..149e0e7 100644 --- a/Example/StompClientLib/ViewController.swift +++ b/Example/StompClientLib/ViewController.swift @@ -40,7 +40,7 @@ class ViewController: UIViewController, StompClientLibDelegate { print("Socket is Connected : \(topic)") socketClient.subscribe(destination: topic) // Auto Disconnect after 3 sec - socketClient.autoDisconnect(time: 3) + socketClient.autoDisconnect(time: 5) // Reconnect after 4 sec socketClient.reconnect(request: NSURLRequest(url: url as URL) , delegate: self as StompClientLibDelegate, time: 4.0) } diff --git a/StompClientLib.podspec b/StompClientLib.podspec index 9c9aa86..17dfd43 100644 --- a/StompClientLib.podspec +++ b/StompClientLib.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'StompClientLib' - s.version = '1.2.5' + s.version = '1.2.6' s.summary = 'Simple STOMP Client library. Swift 3, 4, 4.2 compatible' # This description is used to generate tags and improve search results.