CIO uses Java NIO selectors which Android's power management freezes when the app is backgrounded, dropping the WebSocket connection. OkHttp is Android-native and maintains connections through the OS network stack.
2.4 KiB
2.4 KiB