QubicTypeScript

Installation

How to install @qubic.org/tcp and configure your project.

bun add @qubic.org/tcp
npm install @qubic.org/tcp
pnpm add @qubic.org/tcp

Peer dependencies

@qubic.org/tcp requires @qubic.org/types as a peer dependency for branded identity primitives used in request helpers.

bun add @qubic.org/types
npm install @qubic.org/types
pnpm add @qubic.org/types

Runtime 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.

On this page