Skip to content

Commit

Permalink
fix access control, update pod spec
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrZhurba authored and OleksandrZhurba committed Aug 15, 2020
1 parent f2b9523 commit c11d566
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion SwiftStompClient.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "SwiftStompClient"
spec.version = "0.0.3"
spec.version = "0.0.4"
spec.summary = "STOMP implementation on native WebSocket in Swift"

spec.description = <<-DESC
Expand Down
8 changes: 4 additions & 4 deletions SwiftStompClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.0.3;
MARKETING_VERSION = 0.0.4;
PRODUCT_BUNDLE_IDENTIFIER = OZH.SwiftStompClient;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand All @@ -504,7 +504,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.0.3;
MARKETING_VERSION = 0.0.4;
PRODUCT_BUNDLE_IDENTIFIER = OZH.SwiftStompClient;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand All @@ -525,7 +525,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.0.3;
MARKETING_VERSION = 0.0.4;
PRODUCT_BUNDLE_IDENTIFIER = OZH.SwiftStompClientExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
Expand All @@ -546,7 +546,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.0.3;
MARKETING_VERSION = 0.0.4;
PRODUCT_BUNDLE_IDENTIFIER = OZH.SwiftStompClientExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
Expand Down
Binary file not shown.
22 changes: 11 additions & 11 deletions SwiftStompClient/HeartBeat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ public class HeartBeat {
}
}

public func cancelAllTimers() {
timerPong?.setEventHandler(handler: nil)
timerPong?.cancel()
timerPong = nil
pongAction = nil
//
timerPing.setEventHandler(handler: nil)
timerPing.cancel()
pingAction = nil
}

///reset timer for sending DISCONNECT stomp frame
private func resetListeningServerBeating() {
timerPong?.setEventHandler(handler: nil)
Expand All @@ -50,17 +61,6 @@ public class HeartBeat {
timerPong?.resume()
}

private func stomAllTimers() {
timerPong?.setEventHandler(handler: nil)
timerPong?.cancel()
timerPong = nil
pongAction = nil
//
timerPing.setEventHandler(handler: nil)
timerPing.cancel()
pingAction = nil
}

///Heart-beart implemetation looks like "5000,5000" were first part in client time beating, second part server time beating(miliseconds)
/// - Parameters:
/// - client: client beating
Expand Down

0 comments on commit c11d566

Please sign in to comment.