Browser to Server Communication Options

Although not exactly protocols, this page lists tutorials that also include libraries not included in the core libraries. You have many options for browser-to-server communication and for sending asynchronous, real-time data from the server to the browser. We use names such as REST, AJAX, and RPC, but most of the time they're just variations on the same basic idea: a browser sends a request, the server runs logic, and the browser updates the UI with structured data.

The practical difference is how you move messages back and forth: plain HTTP form posts, Fetch-based "AJAX" calls, persistent WebSockets, or a publish/subscribe layer like SMQ for real-time updates. The links below walk through each option, from beginner-friendly fundamentals to high-performance patterns.

Tip: If you're building a UI for devices (especially with TLS enabled), connection setup and round-trips matter. That's where WebSockets and SMQ can feel dramatically "snappier" than repeated HTTP requests.

Guides, Examples, and libraries

If you're unsure which path to pick:
A good progression is to begin with plain HTML forms, then adopt Fetch and AJAX for a more responsive user experience. As requirements grow toward real-time updates, multiple active browsers, or reduced connection overhead, WebSockets and SMQ become the natural next step.