Skip to content

Category

Web Application Development

Web application development: choosing a tech stack, React vs Angular, custom web apps for business growth and how AI is changing web development.

WebSocket Reconnect: How to Handle Reconnection Automatically

10/25/2026

WebSocket Reconnect: How to Handle Reconnection Automatically

Learn how to handle WebSocket reconnect automatically: read close codes, retry with exponential backoff and jitter, add a heartbeat, resubscribe after reconnecting and recover missed messages in React, Socket.IO and Laravel Echo.

By Muhammad Wilayat Shah

Read
How to Build an Approval Workflow in Laravel

10/24/2026

How to Build an Approval Workflow in Laravel

Build a multi-level approval workflow in Laravel that doesn't break: table-driven flows and steps, row locks against double approvals, policies for the current approver and a full audit trail.

By Muhammad Wilayat Shah

Read
Four-step diagram for fixing WebSocket connection failed: read the handshake status where 101 is healthy and 426, 400 or 403 are not, test the handshake outside the browser with curl, fix Upgrade headers, wss and origin checks, then keep the connection alive with timeouts and ping pong

10/24/2026

WebSocket Connection Failed: Fix Nginx, wss and Timeouts

A live fleet-tracking map failed on staging with 'WebSocket connection failed', first at the handshake, then after 60 quiet seconds. Here is how I read the handshake and fix each cause, with real nginx output.

By Muhammad Wilayat Shah

Read