SocketIOCocoa
SocketIOCocoa copied to clipboard
Bugs when Alamofire and Starscream are already imported as projects
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.
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 :)
Yap, it is bad and will be fixed when Cocoapods .36 out.
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. :)
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])
event is working fine, but unfortunately i cant get my other alamofire rest requests working when i import your vendor folder into my project
How you import the alamofire?
i linked the library like they say on their github page - btw i found the solution:
- delete your alamofire.swift from vendor files
- add "import Alamofire" to EngineTransport.swift
- fix EngineTransport.swift, Line 324 from
self.postingRequest = request(.POST,
to
self.postingRequest = Alamofire.request(.POST,