We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A clear and concise description of what the bug is.
for example:
socket = WebSocket(request: request,useCustomEngine: false) webSocket?.connect() webSocket?.connect() webSocket?.connect() webSocket?.connect()
//your document: NativeEngine -> Repeated call method -> doRead() and Endless loop
"private func doRead() { task?.receive { [weak self] (result) in switch result { case .success(let message): switch message { case .string(let string): self?.broadcast(event: .text(string)) case .data(let data): self?.broadcast(event: .binary(data)) @unknown default: break } break case .failure(let error): self?.broadcast(event: .error(error)) } self?.doRead() } }"
Cpu 100%
App can not work beacuse the cpu is occupied.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Steps to Reproduce
for example:
socket = WebSocket(request: request,useCustomEngine: false)
webSocket?.connect()
webSocket?.connect()
webSocket?.connect()
webSocket?.connect()
//your document: NativeEngine -> Repeated call method -> doRead() and Endless loop
"private func doRead() {
task?.receive { [weak self] (result) in
switch result {
case .success(let message):
switch message {
case .string(let string):
self?.broadcast(event: .text(string))
case .data(let data):
self?.broadcast(event: .binary(data))
@unknown default:
break
}
break
case .failure(let error):
self?.broadcast(event: .error(error))
}
self?.doRead()
}
}"
Expected behavior
Environment:
Additional context
The text was updated successfully, but these errors were encountered: