﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
title: 'RPC'
description: "How oRPC's RPC protocol connects oRPC clients and servers, with a serializer that keeps Date, BigInt, Map, Set, files, and streams intact across the wire."
seo:
  title: 'RPC: Protocol, Serializer, Handler, and Link'
sidebar:
  hidden: true
---

RPC is oRPC's default protocol between its own clients and servers. It works over HTTP, WebSocket, and message ports. To serve a REST API from the same router, see [OpenAPI](/docs/openapi).

- [RPC Protocol](/docs/rpc/protocol): how calls are routed, encoded, and answered.
- [RPC Serializer](/docs/rpc/serializer): the types supported beyond JSON, and how to add your own.
- [RPC Handler](/docs/rpc/handler): serve procedures on the serv