This library provides a SpeedAPI transport level implementation for the Node.JS runtime. Install it with:
npm i @speedapi/node
And check out the main package for its installation instructions.
It's a platform-agnostic API and serialization tool specifically geared towards high-throughput realtime applications. You can read more about its features here
There's a complete tutorial over here.
*Client
, *Server
and *Listener
, where *
is each of Tcp
, Tls
and Ws
(WebSocket)
- Clients are supposed to be instantiated on the client side;
- Listeners are supposed to be instantiated on the server side;
- Servers are instantiated by Listeners for each connection and passed to you via a callback.
Warning: this repository uses a pnpm
lock file, hence you can't substitute it for npm
below.
git clone https://github.com/speedapi/driver-ts
cd driver-ts
pnpm i
pip3 install susc
pnpm test