Fix the line order and indentation in the code that prints every incoming text frame to standard output.
Computer scienceProgramming languagesKotlinAdditional instrumentsAdditional librariesCommunications and Networks
WebSocket
Handling messages
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
}
for (frame in incoming) {
}
val text = frame.readText()
println(text)
if (frame is Frame.Text) {
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.