From 7fca87192f17cb0a7593fcaba365c8e10a768d88 Mon Sep 17 00:00:00 2001 From: Nicki Stone Date: Tue, 26 Oct 2021 10:42:07 -0700 Subject: [PATCH] fix: make mqtt public (#52) --- .../AwsCommonRuntimeKit/mqtt/MqttClient.swift | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Source/AwsCommonRuntimeKit/mqtt/MqttClient.swift b/Source/AwsCommonRuntimeKit/mqtt/MqttClient.swift index b756f98a0..a7cdfe39e 100644 --- a/Source/AwsCommonRuntimeKit/mqtt/MqttClient.swift +++ b/Source/AwsCommonRuntimeKit/mqtt/MqttClient.swift @@ -12,7 +12,7 @@ public final class MqttClient { self.rawValue = aws_mqtt_client_new(defaultAllocator, clientBootstrap.rawValue) } - init(clientBootstrap: ClientBootstrap, allocator: Allocator = defaultAllocator) throws { + public init(clientBootstrap: ClientBootstrap, allocator: Allocator = defaultAllocator) throws { self.rawValue = aws_mqtt_client_new(allocator.rawValue, clientBootstrap.rawValue) } @@ -25,12 +25,12 @@ public final class MqttClient { /// - useWebSockets: Set to `True` to connect over web sockets /// - allocator: The allocator instance to allocate memory on /// - Returns: `MqttConnection` - func newConnection(host: String, - port: Int16, - socketOptions: SocketOptions, - tlsContext: TlsContext, - useWebSockets: Bool, - allocator: Allocator) -> MqttConnection { + public func newConnection(host: String, + port: Int16, + socketOptions: SocketOptions, + tlsContext: TlsContext, + useWebSockets: Bool, + allocator: Allocator) -> MqttConnection { return MqttConnection(clientPointer: rawValue, host: host, port: port, @@ -48,11 +48,11 @@ public final class MqttClient { /// - useWebSockets: Set to `True` to connect over web sockets /// - allocator: The allocator instance to allocate memory on /// - Returns: `MqttConnection` - func newConnection(host: String, - port: Int16, - socketOptions: SocketOptions, - useWebSockets: Bool, - allocator: Allocator) -> MqttConnection { + public func newConnection(host: String, + port: Int16, + socketOptions: SocketOptions, + useWebSockets: Bool, + allocator: Allocator) -> MqttConnection { return MqttConnection(clientPointer: rawValue, host: host, port: port,