Hyperconnectivity
Hyperconnectivity copied to clipboard
Please provide example of how to customise `connectivityURLs`
From what I can see, configuration is private
private let configuration: Configuration
and I can't seem to construct my own Hyperconnectivity
object like this
let config = Hyperconnectivity.Configuration(connectivityURLs: [ ])
let connectivity = Hyperconnectivity(configuration: config)
as it gives me the error 'Hyperconnectivity' initializer is inaccessible due to 'internal' protection level
.
Can you give me any hints or is this a bug that can be resolved with a PR by appending public
to the init?
Thanks
@mylogon341
Use the Hyperconnectivity.Publisher
init; that way, you'll be able to change the configuration and all its properties, plus get a Publisher
from it.
let config = Hyperconnectivity.Configuration(connectivityURLs: [ ])
let connectivity = Hyperconnectivity.Publisher(configuration: config)
A bit late, but hopefully helpful.