Skip to content

Commit

Permalink
Merge pull request #12 from MohammadRezaAnsari/develop
Browse files Browse the repository at this point in the history
Remove useless prints
  • Loading branch information
MohammadRezaAnsari authored Jan 26, 2022
2 parents bdf1cfe + 2608783 commit 4d84e33
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions Sources/SocketKit/Socket/Socket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,32 +159,10 @@ extension Socket {
// MARK: - Default Pusher Delegate
extension Socket: PusherDelegate {

public func debugLog(message: String) {
print("Debug Socket: \(message)")
}

public func changedConnectionState(from old: ConnectionState, to new: ConnectionState) {
print("Debug Socket: old state: \(old)")
print("Debug Socket: new state: \(new)")
}

public func subscribedToChannel(name: String) {
print("Debug Socket: subscribe to channel successfully: \(name)")
}

public func failedToSubscribeToChannel(name: String, response: URLResponse?, data: String?, error: NSError?) {
print("Debug Socket: did failed subscribe to channel: \(name)")
print("Debug Socket: response is \(String(describing: response))")
print("Debug Socket: error is \(String(describing: error))")
}

public func failedToDecryptEvent(eventName: String, channelName: String, data: String?) {
print("Debug Socket: did failed to decrypt event with name \(eventName)")
print("Debug Socket: channel name is \(channelName)")
print("Debug Socket: date is \(String(describing: data))")
}

public func receivedError(error: PusherError) {
print("Debug Socket: received error - \(error)")
}
public func debugLog(message: String) {}
public func changedConnectionState(from old: ConnectionState, to new: ConnectionState) {}
public func subscribedToChannel(name: String) {}
public func failedToSubscribeToChannel(name: String, response: URLResponse?, data: String?, error: NSError?) {}
public func failedToDecryptEvent(eventName: String, channelName: String, data: String?) {}
public func receivedError(error: PusherError) {}
}

0 comments on commit 4d84e33

Please sign in to comment.