You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]]]];
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?
The text was updated successfully, but these errors were encountered: