Telepact
Home Documentation GitHub

Start Here

  • Home
  • Quickstart

Learn Telepact by Example

  • Learn Telepact by Example
Getting Started
  • 00. Installation
  • 01. Ping
  • 02. Schema and fn.add
  • 03. Data type validation
Schema
  • 04. Scalar types
  • 05. Collection types
  • 06. Structs
  • 07. Unions
  • 08. Functions
  • 09. Service errors
  • 10. Headers
  • 11. Comments
Opt in Features
  • 12. Select
  • 13. Binary
Mocking an Integration
  • 14. Mock server
  • 15. Stock mock
  • 16. Stubs
  • 17. Verify
Auth
  • 18. Auth
Using Telepact Client Library Code
  • 19. Minimum Python client
  • 20. Automatic binary negotiation
Code Generation
  • 21. Code generation
Running Our Own Server
  • 22. Minimum server
  • 23. Logging
  • 24. Server auth
  • 25. Managed auth
  • 26. Schema evolution
  • 27. TDD with TestClient
  • 28. Best practices for server implementers

Design APIs

  • Schema Writing Guide
  • Core Concepts
  • Extensions
  • ext.Select
  • Mock Extensions

Build Clients and Servers

  • Transport Guide
  • Client Paths
  • Server Paths
  • Tooling Workflow
  • Auth Guide

Operate

  • Operating Boundary Guide
  • Runtime Error Guide
  • Versions

Background and Reference

  • FAQ
  • Motivation

Demos

  • Demos
Full Stack
  • full-stack
Py Binary
  • py-binary
Py Codegen
  • py-codegen
Py HTTP Cookie Auth
  • py-http-cookie-auth
Py Links
  • py-links
Py Select
  • py-select
Py WebSocket
  • py-websocket
Ts Binary
  • ts-binary
Ts Codegen
  • ts-codegen
Ts HTTP Cookie Auth
  • ts-http-cookie-auth
Ts Links
  • ts-links
Ts Select
  • ts-select
Ts WebSocket
  • ts-websocket

#ts-binary

Minimal TypeScript Telepact example that verifies binary negotiation.

Browse the files:

  • api/binary.telepact.yaml - Telepact schema

  • server.ts - server implementation

  • test_example.ts - example test

  • Makefile - local run target

Run it:

make run
  • GitHub
  • Documentation
  • Apache 2.0 License

© Telepact Contributors. Open source under the Apache 2.0 License.