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

Bugs when Alamofire and Starscream are already imported as projects #7

Open
longbowww opened this issue Dec 5, 2014 · 7 comments
Open

Comments

@longbowww
Copy link

Hi,
I have kind of the same issue like the other guy that posted about Alamofire.

I already use it for a lot of REST calls and it wont find the methods anymore when I import your vendor folder. It somehow only checks for your alamofire.swift and doesnt accept calls for the natively imported project file.

@raymondos
Copy link

Hi @longbowww ,
Try using "request" instead of "Alamofire.request", this project does not wrapped namespace for alamofire.
Wish it works if you have the same issue with me :)

@shuoli84
Copy link
Owner

shuoli84 commented Dec 8, 2014

Yap, it is bad and will be fixed when Cocoapods .36 out.

@longbowww
Copy link
Author

I am trying to use it as standalone in a Test project and what I cant figure out is, how do you emit events from the Client Side? Is this function implemented?

Connecting and receiving the Handshake works fine. :)

@shuoli84
Copy link
Owner

Not sure whether this is what you asking. After you get a socket, then you can emit message by

socket.event("message", data: [1,2,3]) 

@longbowww
Copy link
Author

event is working fine, but unfortunately i cant get my other alamofire rest requests working when i import your vendor folder into my project

@shuoli84
Copy link
Owner

How you import the alamofire?

@longbowww
Copy link
Author

i linked the library like they say on their github page - btw i found the solution:

  1. delete your alamofire.swift from vendor files
  2. add "import Alamofire" to EngineTransport.swift
  3. fix EngineTransport.swift, Line 324 from
self.postingRequest = request(.POST, 

to

self.postingRequest = Alamofire.request(.POST, 

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

3 participants