# Pavia > Pavia is a real-time RPC and messaging protocol between browsers or apps and servers. One persistent session carries typed calls in both directions and lets the server target sessions, users and groups. The documentation is generated from the protocol specification: https://github.com/wolfware-labs/pavia/blob/main/spec/pavia-protocol.md ## Docs - [Introduction](https://pavia.sh/docs/): What Pavia is: one session between a client and a server, carrying typed calls in both directions. - [Calls](https://pavia.sh/docs/concepts/calls/): Methods, the four call shapes, deadlines, cancellation, metadata and errors. - [Channels and history](https://pavia.sh/docs/concepts/channels/): Subscriptions, publications, history and gapless recovery. - [Datagrams](https://pavia.sh/docs/concepts/datagrams/): Lossy, latest-value data such as cursors and telemetry. - [Notifications and lanes](https://pavia.sh/docs/concepts/notifications/): Fire-and-forget methods and the ordering domains they travel in. - [Presence](https://pavia.sh/docs/concepts/presence/): Who is subscribed to a channel, with joins and leaves as events. - [Session resumption](https://pavia.sh/docs/concepts/resumption/): Keeping a session alive across transport loss. - [Sessions](https://pavia.sh/docs/concepts/sessions/): The handshake, heartbeats, authentication, capabilities and closing a session. - [Targeting and delivery](https://pavia.sh/docs/concepts/targeting/): Reaching sessions, users and groups, lifecycle hooks, slow consumers and delivery guarantees. - [Code generation](https://pavia.sh/docs/contracts/codegen/): What a generated client must provide, starting with the TypeScript reference client. - [Manifest](https://pavia.sh/docs/contracts/manifest/): The machine-readable contract, its fingerprint, publication and compatibility rules. - [Types and codecs](https://pavia.sh/docs/contracts/types/): The contract type system and how each type maps to cbor and json. - [Conformance](https://pavia.sh/docs/reference/conformance/): Conformance levels and the public test vectors. - [Conventions](https://pavia.sh/docs/reference/conventions/): Requirement keywords, notation and the markers used in the specification. - [Defaults and limits](https://pavia.sh/docs/reference/defaults/): The default values and limits every implementation starts from. - [Open questions](https://pavia.sh/docs/reference/open-questions/): Design decisions that are deliberately unresolved. - [Registries](https://pavia.sh/docs/reference/registries/): Close codes, call status codes, unsubscribe reasons and presence kinds. - [Security considerations](https://pavia.sh/docs/reference/security/): Threats the protocol accounts for and what implementations must do about them. - [Specification](https://pavia.sh/docs/reference/specification/): The Pavia wire protocol specification, the source every docs page is generated from. - [Terminology](https://pavia.sh/docs/terminology/): Sessions, streams, frames, codecs, contracts and the layers they form. - [Transport bindings](https://pavia.sh/docs/transports/bindings/): WebTransport over HTTP/3, WebSocket, how a client picks one and how they differ. - [Endpoints](https://pavia.sh/docs/transports/endpoints/): The URLs a server exposes for each binding. - [Framing](https://pavia.sh/docs/transports/framing/): Varints, the frame layout, header sections and the frame and header registries. - [Streams](https://pavia.sh/docs/transports/streams/): Stream identifiers, the control stream, call stream lifecycle and flow control. ## Comparisons - [Pavia vs SignalR](https://pavia.sh/compare/signalr/): Pavia and ASP.NET Core SignalR compared: transports, calls in both directions, typed contracts, channel history and what survives a reconnect. - [Pavia vs gRPC](https://pavia.sh/compare/grpc/): Pavia, gRPC-Web, tonic-web and Connect compared: which call shapes work from a browser, and how Pavia sits beside gRPC between services. - [Pavia vs Socket.IO](https://pavia.sh/compare/socket-io/): Pavia and Socket.IO compared: events and acks against typed calls, streaming, cancellation, channel history, datagrams and reconnects. - [Pavia vs Centrifugo](https://pavia.sh/compare/centrifugo/): Pavia and Centrifugo compared: the same epoch and offset recovery, as a standalone Go server or inside your Rust server, with typed calls.