跳过主要内容
C

the-binding-of-dsh

ch4acko3/the-binding-of-dsh

通过原生 Connection 与 Typert Gateway 在 DSH Host 和 Client 之间提供双向 RPC,支持目标 Peer 调用、取消与连接生命周期处理。

安装

dsh plugin --profile web add github:ch4acko3/the-binding-of-dsh

README

The Binding of DSH

Powered by Harmony

English | 简体中文

A DSH plugin that enables bidirectional RPC between Host and Client through the native DSH Connection and Typert Gateway.

Features

  • Targeted Host-to-Client calls for connected browser or Node peers.
  • Symmetric Typert Gateway calls in both directions.
  • Request correlation, cancellation, and connection lifecycle handling.
  • Harmony patches that reuse DSH's existing HTTP and WebSocket transport.

The plugin adds no parallel RPC protocol. Connection remains responsible for transport and peer addressing, while Typert Gateway remains responsible for service descriptors, codecs, invocation, and errors.

Installation

npm install the-binding-of-dsh

The package declares its DSH client entrypoint and Harmony patches in package.json, so it can be enabled as a regular DSH plugin.

Development

Requires Node.js 22.22.3 or newer.

npm install
npm run check

License

MIT

相关插件