Skip to content

Advanced User Guide

You can build a lot of Golit without anything here. This section is for when you reach past the common case:

Server-push updates (SSE)

Push fragments to the client without a user interaction — streaming sources, background jobs, and shared nodes, via the pub/sub channel.

WebSocket chat

The bidirectional channel: a live chat component, room broadcast, and an @app.on_message handler hook for bots and moderation.

Custom rendering

Make your own objects renderable with the __golit_render__ protocol, and control exactly what markup a view emits.

Sessions & state

What a session is, where state lives, and the one rule that governs scaling.

Deployment & scaling

From a single process to a Redis-backed fleet behind a sticky load balancer.

It assumes you're comfortable with the tutorial and have skimmed How a change flows.