New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@sodazone/ocelloids-client

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sodazone/ocelloids-client

Ocelloids client library

latest
Source
npmnpm
Version
4.0.5
Version published
Maintainers
3
Created
Source

Ocelloids Client Library

npm @sodazone/ocelloids-client

TypeScript client library to interact with Ocelloids Service APIs.

Documentation Site.

Install

NPM

npm install @sodazone/ocelloids-client

Yarn

yarn add @sodazone/ocelloids-client

Usage

import { createXcmAgent } from "@sodazone/ocelloids-client";

// create an xcm agent client
const agent = createXcmAgent({
  httpUrl: "http://127.0.0.1:3000",
  wsUrl: "ws://127.0.0.1:3000"
});

// subscribe on-demand
const ws = agent.subscribe({
  senders: "*",
  events: "*",
  origins: ["urn:ocn:polkadot:2004"],
  destinations: [ 
    "urn:ocn:polkadot:0",
    "urn:ocn:polkadot:1000",
    "urn:ocn:polkadot:2000",
    "urn:ocn:polkadot:2034",
    "urn:ocn:polkadot:2104"
  ]
 }, {
  onMessage: msg => {
    if(xcm.isXcmReceived(msg)) {
      console.log("RECV", msg.subscriptionId);
    } else if(xcm.isXcmSent(msg)) {
      console.log("SENT", msg.subscriptionId)
    }
    console.log(msg);
  },
  onError: error => console.log(error),
  onClose: event => console.log(event.reason)
});

Explore the documentation site for further details.

Development

Enable corepack:

corepack enable

Install dependencies and build the project:

yarn && yarn build

Testing

Run unit tests:

yarn test

Run unit tests with coverage report:

yarn test:coverage

Compatibility

Compatible with browser environments, Node and Bun.

FAQs

Package last updated on 20 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts