EnSync gRPC Client SDK (v0.2.2) is a high-performance, message-driven communication library for Node.js, enabling server-to-server messaging via HTTP/2 and Protocol Buffers. It features end-to-end encryption (Ed25519/hybrid), JSON validation, message lifecycle management (publish, subscribe, acknowledge, defer, discard, replay), flow control, and auto-reconnection. Developed by EnSync, it targets real-time event-driven architectures and integrates with the EnSync engine. The package is actively maintained and ships TypeScript definitions.
npm install ensync-client-sdkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an EnSync client, publishes a message to 'orders/created', subscribes to the same topic, and acknowledges received messages.
Always include 'grpcs://' or 'grpc://' in the endpoint URL.
pass { appSecretKey: '...' } as second argument.use await client.subscribe(topic).on(handler);
call subscription.ack(message.idem, message.block);
Use `const { EnSyncEngine } = require('ensync-client-sdk');``engine.createClient('app-key', { appSecretKey: 'secret' })``const sub = await client.subscribe('topic'); sub.on(handler);`