Open jinjuezhou opened 7 years ago
The NSOutputStream write failed.
You can debug to _outputStream
, it's streamError
property contains details information.
Or
The delegate method - (void)webSocket:(SRWebSocket *)webSocket didFailWithError:(NSError *)error;
.
The error's userInfo
, the key NSUnderlyingErrorKey also contains details information.
hi, I got the error message:
(didFailWithError),error:Error Domain=SRWebSocketErrorDomain Code=2145 "Error writing to stream" UserInfo={NSLocalizedDescription=Error writing to stream}
but don't know why