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

Cannot invoke 'WebSocket' with an argument list of type '(url: URL)' #384

Closed
xManson opened this issue Sep 21, 2017 · 1 comment
Closed

Comments

@xManson
Copy link

xManson commented Sep 21, 2017

Hello
Thanks for watching
I use xcode 9.0 . pod 1.3.1

in podfile
pod 'Starscream', '~> 2.0.3'

in source code
import Starscream
var soc = WebSocket(url: URL(string: "ws://localhost:8080/")!)

But i'm getting an error

  • Cannot invoke 'WebSocket' with an argument list of type '(url: URL)'

or other case
var soc = WebSocket(url: URL(string: "ws://localhost:8080/")!, protocols: nil)
-- Type of expression is ambiguous without more context

please help

@xManson xManson closed this as completed Sep 21, 2017
@xManson
Copy link
Author

xManson commented Sep 21, 2017

Sorry. it was an conflict with other class

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

1 participant