-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Crash when connecting the socket #1033
Comments
@daltoniam please help here. |
update to xcode 15.3 or xcode 15.4 try it again |
Hello, did you manage to resolve the issue? I am encountering the same difficulty. Do you have any suggestions for a solution? |
I am still facing the same issue. Do you have any suggestions for a solution? |
on public convenience init(request: URLRequest, certPinner: CertificatePinning? = FoundationSecurity(), compressionHandler: CompressionHandler? = nil, useCustomEngine: Bool = true) {
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *), !useCustomEngine {
self.init(request: request, engine: NativeEngine())
}
// else if #available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) {
// self.init(request: request, engine: WSEngine(transport: TCPTransport(), certPinner: certPinner, compressionHandler: compressionHandler))
// }
else {
self.init(request: request, engine: WSEngine(transport: FoundationTransport(), certPinner: certPinner, compressionHandler: compressionHandler))
}
} |
can you describe what will this code do ? i am also facing the crash. and i am only dependent on starScream i am not using native socket by apple. |
this code for don't use network.framework to transport , iOS 13.0 - use foundation transport |
I understand , your crash for the reconnect scene? you can connect after disconnect 0.5 second |
|
there has two problem
|
Sure i will try to do that. |
socket initialisation is as below:-
` var request = URLRequest(url: URL(string: "wss://(sSocketServerHostName)")!)
request.timeoutInterval = 30
Environment:
Additional context
The text was updated successfully, but these errors were encountered: