diff --git a/Package.swift b/Package.swift index 4985488..0e37025 100644 --- a/Package.swift +++ b/Package.swift @@ -21,9 +21,9 @@ import Foundation var webSocketPackage: Package.Dependency if ProcessInfo.processInfo.environment["KITURA_NIO"] != nil { - webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket-NIO.git", from: "2.0.0") + webSocketPackage = .package(url: "https://github.com/Kitura/Kitura-WebSocket-NIO.git", from: "2.1.200") } else { - webSocketPackage = .package(url: "https://github.com/IBM-Swift/Kitura-WebSocket.git", from: "2.0.0") + webSocketPackage = .package(url: "https://github.com/Kitura/Kitura-WebSocket.git", from: "2.1.200") } let package = Package( diff --git a/Sources/SwiftMetricsDash/SwiftMetricsDash.swift b/Sources/SwiftMetricsDash/SwiftMetricsDash.swift index 0f70bdb..4efe3fc 100644 --- a/Sources/SwiftMetricsDash/SwiftMetricsDash.swift +++ b/Sources/SwiftMetricsDash/SwiftMetricsDash.swift @@ -79,6 +79,7 @@ public class SwiftMetricsDash { } class SwiftMetricsService: WebSocketService { + var connectionTimeout: Int? = nil private var connections = [String: WebSocketConnection]() var httpAggregateData: HTTPAggregateData = HTTPAggregateData() var httpURLData:[String:(totalTime:Double, numHits:Double, longestTime:Double)] = [:]