Skip to content

Guide Introduction

  • Connect to the WebSocket endpoint.
  • Send a request using Protobuf encoding.
  • Decode and process responses.
  • Handle different leg types in results (transit, non‑transit, waiting, flexible).
  • Render meaningful summaries for users.

You’ll use the protobufjs and ws npm packages throughout.

Install them with:

Terminal window
npm install ws protobufjs