Skip to content

Commit 28cb29a

Browse files
authored
chore: remove socket as the default transport layer (#179)
1 parent 749953d commit 28cb29a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Sources/metamask-ios-sdk/Classes/CommunicationLayer/CommLayer.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55

66
import Foundation
77

8+
/**
9+
An enum representing the communication types supported for communication with MetaMask wallet
10+
**/
811
public enum Transport: CaseIterable, Identifiable, Hashable {
12+
/// Uses socket.io as a transport mechanism
913
case socket
14+
/// Uses deeplinking as transport mechanism. Recommended. Requires setting URI scheme
1015
case deeplinking(dappScheme: String)
1116

1217
public var id: String {

Sources/metamask-ios-sdk/Classes/SDK/MetaMaskSDK.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class MetaMaskSDK: ObservableObject {
8181
}
8282

8383
public static func shared(_ appMetadata: AppMetadata,
84-
transport: Transport = .socket,
84+
transport: Transport,
8585
enableDebug: Bool = true,
8686
sdkOptions: SDKOptions?) -> MetaMaskSDK {
8787
guard let sdk = SDKWrapper.shared.sdk else {

0 commit comments

Comments
 (0)