socket.io-client-swift icon indicating copy to clipboard operation
socket.io-client-swift copied to clipboard

Error Cannot GET /socket.io/?transport=polling&b64=1

Open githubforIT opened this issue 9 years ago • 2 comments

I am using this library in obj-c project, everything was working great before I turned my server to https. At the moment I turned to https I was encountering invalid certificate issue which I had addressed by implementing didReceiveChallenge delegate method. Now, I am getting this error ;

Cannot GET /socket.io/?transport=polling&b64=1

socket = [[SocketIOClient alloc] initWithSocketURL:[[NSURL alloc] initWithString:@"https://localhost:xxxx"] config:@{@"log": @YES, @"forcePolling": @YES, @"selfSigned": @YES, @"sessionDelegate":appDelegate}];

I have also given a try by placing following key and value in config. @"path":@"/node_modules/socket.io"

Any prompt help will be really appreciated.

githubforIT avatar Mar 02 '17 12:03 githubforIT

It required a server side fix.

githubforIT avatar Mar 06 '17 11:03 githubforIT

I would like to know this fix as I am getting the same error.

CreativeBuilds avatar Jul 29 '17 02:07 CreativeBuilds