interface-relay/src/swarm.ts

7 lines
193 B
TypeScript
Raw Normal View History

2022-12-30 06:06:29 +00:00
export type ProtocolHandler = (peer: any, muxer: any) => void;
export declare class ProtocolManager {
constructor(swarm: any);
register(name: string, handler: ProtocolHandler): boolean;
}