When I initialize the controller, I would like to know once the init status is OK.
The documentation says :
When this connection initiation process is finished the ConnectionInitiationEnd message will be sent. From that moment on you know that a connection is succesfully established.
But ConnectionInitiationEnd is not declared public, so the following code does not compile.
self.controller = try Controller(ipAddress: "192.168.0.48") { connection in
connection.when{ (message: ConnectionInitiationEnd) in
print(message)
}
}
Solution: add the public visibility to ConnectionInitiationEnd struct.
When I initialize the controller, I would like to know once the init status is OK. The documentation says :
But
ConnectionInitiationEnd
is not declared public, so the following code does not compile.Solution: add the
public
visibility to ConnectionInitiationEnd struct.