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

Websocket host address #139

Closed
sadanro100 opened this issue Nov 22, 2015 · 2 comments
Closed

Websocket host address #139

sadanro100 opened this issue Nov 22, 2015 · 2 comments

Comments

@sadanro100
Copy link

Hello is there any other way to know the address of a connected Websocket instance rather than making

private var url: NSURL

public?

I need to compare objects in order to add/remove them from an array.

Thanks

@daltoniam
Copy link
Owner

hmmm, yeah currently there won't be a way to compare them. I don't think I every thought there would be a need for that, but in your use case I can see how that might be problematic. I think the best course of action would be to add a read only/computed property that returned the url so it couldn't be modified.

@daltoniam
Copy link
Owner

Added a new property, currentURL

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

No branches or pull requests

2 participants