Skip to content

Commit ec100bb

Browse files
committed
vendor: updated socket framework to the latest version
1 parent 85485da commit ec100bb

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Cartfile.resolved

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "Gagnant/Socket" "0.1.9"
1+
github "Gagnant/Socket" "0.2.0"

Sources/Shared/Core/Connection.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ open class Connection {
3535
private func createTransport(with config: Configuration) -> TCPSocket {
3636
let delegate = TCPSocketDelegateImplementation(self)
3737
let security = config.secure ? Security.negitiated(validates: true) : Security.none
38-
let configuration = Socket.Config(host: config.host, port: config.port, security: security)
39-
return TCPSocket(with: configuration, delegate: delegate)
38+
return TCPSocket(with: config.host, port: config.port, security: security, delegate: delegate)
4039
}
4140

4241
// MARK: -

Sources/Shared/Core/Delegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class TCPSocketDelegateImplementation: TCPSocketDelegate {
2424
self.connection.delegate?.connectionDidConnect(self.connection)
2525
}
2626

27-
internal func socketDidDisconnect(_ socket: TCPSocket) {
27+
func socket(_ socket: TCPSocket, didDisconnectWithError error: Error?) {
2828
connection.delegate?.connectionDidDisconnect(connection)
2929
}
3030

0 commit comments

Comments
 (0)