Open muraviovvladimir opened 3 years ago
This how Change JFRWebSocket.m line 390 to 397 with
if(status == NO) { [self doDisconnect: [self errorWithDetail:@"Invalid HTTP upgrade" code:1 userInfo: @{ @"HTTPResponseStatusCode" : @(responseStatusCode), @"HTTPResponseBuffer" : [NSString stringWithFormat:@"%s",buffer] } ] ]; }
Than you'll be able to read from [error userInfo] -> HTTPResponseBuffer even if you turn off debug mode
[error userInfo] -> HTTPResponseBuffer
This how Change JFRWebSocket.m line 390 to 397 with
if(status == NO) { [self doDisconnect: [self errorWithDetail:@"Invalid HTTP upgrade" code:1 userInfo: @{ @"HTTPResponseStatusCode" : @(responseStatusCode), @"HTTPResponseBuffer" : [NSString stringWithFormat:@"%s",buffer] } ] ]; }
Than you'll be able to read from
[error userInfo] -> HTTPResponseBuffer
even if you turn off debug mode