socket.IO-objc icon indicating copy to clipboard operation
socket.IO-objc copied to clipboard

Project references missing files

Open bhartsb opened this issue 10 years ago • 4 comments

I downloaded the ZIP and under the SocketRocket Folder there are missing files that aren't included with the SocketRocket ZIP: base64.c base64.h NSData+SRB64Additions.h NSData+SRB64Additions.M I'm getting build errors that may or may not be related. Also your e-mail address link does not work. I'm new to objC and node so any instructions are appreciated. I assume to use SocketRocket all I need to do is build libsocketrocket.a and link to it under XCodes "build Phases" and include SRWebSocket.h. If this is wrong please let me know.

Thanks.

bhartsb avatar Apr 06 '14 09:04 bhartsb

I found versions of the missing files at: https://code.google.com/p/sizecircle/source/browse/trunk/DXQ/WebSocket/SocketRocket/?r=40 the version of SRWebSocket is different, but I didn't note specifically the diffs. I used the more recent socketrocket .m and .h and then the rest from the above link. I had to rename the .c .m to rid of some compiler errors, and then was able to build successfully.

bhartsb avatar Apr 07 '14 07:04 bhartsb

why are you downloading the ZIP? either check out the project using git and init the submodules or use cocoapods to install dependencies after cloning the repository.

pkyeck avatar Apr 07 '14 07:04 pkyeck

In the past I've used SVN and haven't used git except from within XCode for the project I'm working on. Submodules sound interesting and I'll try it out. I guess I'll need to check out cocoa pods since I keep running into it.

On Mon, Apr 7, 2014 at 12:13 AM, Philipp Kyeck [email protected]:

why are you downloading the ZIP? either check out the project using git and init the submodules or use cocoapods to install dependencies after cloning the repository.

Reply to this email directly or view it on GitHubhttps://github.com/pkyeck/socket.IO-objc/issues/163#issuecomment-39701673 .

bhartsb avatar Apr 08 '14 08:04 bhartsb

Hi Philipp,

Regarding the following properties that are used as a cookie:

NSDictionary *properties = [NSDictionary dictionaryWithObjectsAndKeys: @"localhost", NSHTTPCookieDomain, @"/", NSHTTPCookiePath, @"auth", NSHTTPCookieName, @"56cdea636acdf132", NSHTTPCookieValue, nil];

How in the context of a IOS app's websocket connection is NSHTTPCookieDomain and NSHTTPCookiePath used ?

On the server when I call console.log(socket.handshake.cookie) all I see is:

auth=56cdea636acdf132

Also, per including & using socket.IO-objc in my project what do you recommend? It is not being built as a library per se. I only see the app as the target.

Thanks,

Brian

On Tue, Apr 8, 2014 at 1:20 AM, B Hart [email protected] wrote:

In the past I've used SVN and haven't used git except from within XCode for the project I'm working on. Submodules sound interesting and I'll try it out. I guess I'll need to check out cocoa pods since I keep running into it.

On Mon, Apr 7, 2014 at 12:13 AM, Philipp Kyeck [email protected]:

why are you downloading the ZIP? either check out the project using git and init the submodules or use cocoapods to install dependencies after cloning the repository.

Reply to this email directly or view it on GitHubhttps://github.com/pkyeck/socket.IO-objc/issues/163#issuecomment-39701673 .

bhartsb avatar Apr 10 '14 09:04 bhartsb