Installation
How to install @qubic.org/tcp and configure your project.
bun add @qubic.org/tcpnpm install @qubic.org/tcppnpm add @qubic.org/tcpPeer dependencies
@qubic.org/tcp requires @qubic.org/types as a peer dependency for branded identity primitives used in request helpers.
bun add @qubic.org/typesnpm install @qubic.org/typespnpm add @qubic.org/typesRuntime requirements
@qubic.org/tcp uses the net module from Node.js / Bun for raw TCP socket access. It runs in server-side environments only — it cannot be used in a browser.
This package is not browser-compatible. It requires access to TCP sockets, which browsers do not expose. Use @qubic.org/rpc or @qubic.org/bob for browser environments.
The package is published as ESM only. CommonJS (require) is not supported. Use "type": "module" in your package.json or a bundler that handles ESM imports.