Skip to content

Getting Started

AfterLink is a high-performance application-layer binary protocol engineered for persistent, real-time node communication. Learn how to configure a persistent server and client connection with built-in speed.

Why AfterLink?

  • 76% Faster than WebSockets: Streamlined binary framing reduces TCP wire transmission latencies to a bare minimum.
  • 90% Less Wire Overhead: A fixed 10-byte header format eliminates heavy HTTP header transport bloat.
  • Built-in Pub/Sub Engine: Broadcast real-time frames directly from the protocol layer without external brokers.

Prerequisites

Ensure your local environment matches the requirements before starting implementation:

  • Node.js version v18.0.0 or higher
  • npm, pnpm, or yarn package manager
  • Installation

    Install the standard AfterLink scoped packages from the npm registry:

    Quick Start — Server

    Create a server script in your project root to handle binary framing:

    Quick Start — Client

    Establish a persistent connection from your client and publish your first frame:

    Next Steps