Skip to content

Commit

Permalink
fix: make mqtt public (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
kneekey23 authored Oct 26, 2021
1 parent 4e670ac commit 7fca871
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Source/AwsCommonRuntimeKit/mqtt/MqttClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 7fca871

Please sign in to comment.