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

SRWebSocketErrorDomain Code 2132 #7

Open
nmik2020 opened this issue Apr 17, 2018 · 3 comments
Open

SRWebSocketErrorDomain Code 2132 #7

nmik2020 opened this issue Apr 17, 2018 · 3 comments
Labels

Comments

@nmik2020
Copy link

I get the following error while trying to connect to my Server using the iPhone Example app provided :

Error Domain=SRWebSocketErrorDomain Code=2132 "received bad response code from server 400" UserInfo={NSLocalizedDescription=received bad response code from server 400, HTTPResponseStatusCode=400

The only way it worked for me was by changing the line 68 in SCSocket.m from
wS = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"ws://%@/?transport=websocket",url]]]];

to

wS = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"ws://%@/socketcluster/",url]]]];

Is this a bug that needs to be fixed with a PR or is it some setting I need to change on the Server side?

@abpopov abpopov added the bug label Apr 17, 2018
@abpopov
Copy link
Owner

abpopov commented Apr 17, 2018

This is a bug.
I will change path generation in next version

@nmik2020
Copy link
Author

Ok thanks. Do you know when you might release the next version?

@abpopov
Copy link
Owner

abpopov commented Apr 20, 2018

I think on next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants