Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide example of how to customise connectivityURLs #5

Open
mylogon341 opened this issue Jan 13, 2022 · 1 comment
Open

Please provide example of how to customise connectivityURLs #5

mylogon341 opened this issue Jan 13, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@mylogon341
Copy link

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

@rwbutler rwbutler self-assigned this Mar 16, 2022
@rwbutler rwbutler added the question Further information is requested label Mar 16, 2022
@BrunoMiguens
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants