Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
4 posts · #react-native
Clear filters·7 min read

Chiti · Story
A courier who stood still stopped receiving offers
A courier waiting for work stopped seeing fresh offers. It took four causes to explain it: a 250 m distance gate, a location provider that never answered, a false status and a stale cache.
In short
- The server ranks a courier's offers around their last stored position, so a position that stops updating quietly freezes the feed.
- Four stacked causes: a 250 m distance gate, a location accuracy setting that some devices never answer, a screen that claimed to track when nothing was running, and a persisted cache shown off shift.
- Each fix is small. The work was following the symptom through app state, OS settings and server ranking.
#react-native#expo-location#tanstack-query#debugging
·6 min read

Chiti · Story
The server took every position and stored none of them
A courier's marker moved on the map while the server quietly kept an old position. I made position reports acknowledged, then taught the socket to reconnect when the answer was stored:false.
In short
- The backend stores a position only for a socket whose handshake proved an identity, so an anonymous socket can broadcast a marker and persist nothing.
- Positions now go over the socket with an acknowledgement, and the client remembers whether the server says it stored them.
- When the answer is stored:false, or when the token changes, the socket reconnects once so the handshake reads the current token.
#socket-io#react-native#auth#reliability
·6 min read

Chiti · Story
A 10 second timeout failed an 11.3 second handshake
A socket timeout that looked generous lost every frame during reconnects. I measured the server's handshake at 11.3 seconds and moved the budget to 25.
In short
- The socket connect timeout was 10 seconds. The server's handshake measured 11.3 seconds, so the first attempt failed on exactly the connections that needed patience.
- Every failed attempt cost a full reconnect cycle with no frames, and the server replays nothing.
- I raised the budget to 25 seconds, above the server's own 20 second ping timeout, so the ping cycle decides when a link is dead.
#socket-io#react-native#debugging#timeouts
·11 min read

Chiti: Replacing 11 Sockets With One Typed Real-Time Layer
One socket for a six-role delivery and taxi app, then the real work: an 11.3 second handshake, positions the server accepted but never stored, and a token that went stale in the background.
In short
- Eleven unauthenticated Socket.IO connections became one connection per session, owned by a single module that components never touch.
- Status pings invalidate queries, position frames patch the cache, everything else goes on a small typed bus. Frames are parsed as unknown with Zod.
- Real devices taught more than design did: an 11.3 second handshake, a position the server broadcast but never stored, and a socket that stayed anonymous after a token refresh.
#react-native#socket-io#typescript#tanstack-query