2023-08-31 07:49:01 +00:00
|
|
|
import { S5Node } from "#node.js";
|
|
|
|
import type { S5NodeConfig } from "#node.js";
|
2023-08-31 08:15:50 +00:00
|
|
|
import type { SignedRegistryEntry } from "#service/registry.js";
|
2023-08-31 07:49:01 +00:00
|
|
|
|
2023-08-31 06:37:32 +00:00
|
|
|
export * from "./types.js";
|
2023-08-31 09:04:33 +00:00
|
|
|
export {
|
|
|
|
createTransportSocket,
|
|
|
|
isTransport,
|
|
|
|
createTransportPeer,
|
|
|
|
} from "./transports/index.js";
|
2023-08-31 08:15:50 +00:00
|
|
|
export type { S5NodeConfig, SignedRegistryEntry };
|
2023-08-31 07:49:01 +00:00
|
|
|
|
|
|
|
export function createNode(config: S5NodeConfig) {
|
|
|
|
return new S5Node(config);
|
|
|
|
}
|