Skip to content

Commit

Permalink
chore: remove socket as the default transport layer (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
elefantel authored Aug 22, 2024
1 parent 749953d commit 28cb29a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@

import Foundation

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

public var id: String {
Expand Down
2 changes: 1 addition & 1 deletion Sources/metamask-ios-sdk/Classes/SDK/MetaMaskSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class MetaMaskSDK: ObservableObject {
}

public static func shared(_ appMetadata: AppMetadata,
transport: Transport = .socket,
transport: Transport,
enableDebug: Bool = true,
sdkOptions: SDKOptions?) -> MetaMaskSDK {
guard let sdk = SDKWrapper.shared.sdk else {
Expand Down

0 comments on commit 28cb29a

Please sign in to comment.