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.
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.