oro:network
oro:network exposes a higher-level networking surface built on the Latica stack.
Examples#
Start the higher-level networking surface and attach event listeners:
import network from 'oro:network'
const bus = await network({})
bus.on('error', console.error)
bus.on('message', (message) => console.log(message))
API reference#
Module specifiers#
oro:network
TypeScript declarations#
These declarations are generated from the runtime's published TypeScript surface.
oro:network#
declare module "oro:network" {
export default network;
export function network(options: any): Promise<events>;
import { Cache } from "oro:latica/index";
import { sha256 } from "oro:latica/index";
import { Encryption } from "oro:latica/index";
import { Packet } from "oro:latica/index";
import { NAT } from "oro:latica/index";
import events from "oro:events";
export { Cache, sha256, Encryption, Packet, NAT };
}
See also#
Source repository · Edit this page · View Markdown