WebSocket connection management
You've got a bug report that the chat app's WebSocket connection drops often and the app is slow to notice. How would you detect a dropped connection promptly on iOS?
You've got a bug report that the chat app's WebSocket connection drops often and the app is slow to notice. How would you detect a dropped connection promptly on iOS?
TCP doesn't tell you the peer is gone, so put an app-level heartbeat on top of URLSessionWebSocketTask: periodic pings with a pong timeout to catch silent drops.
NetworkingShort answerAdvanced
This is an exchange app's order book and ticker screen. The design fetches the current…
#websocket
NetworkingMultiple choiceAdvanced
In a live audio broadcast app, the broadcast audio plays over HLS and chat goes over…
#websocket
PersistenceShort answerAdvanced
You have logs where the app, woken by a background push while the screen is locked, fails…
#background
App lifecycle and systemShort answerIntro
A user is working in your app, takes a phone call, hangs up, goes out to the home screen…
#background