oak-frontend-base/lib/features/socket/socketPoint.d.ts

14 lines
358 B
TypeScript

type SocketPointInfo = {
path: string;
subscribeUrl: string;
socketUrl: string;
};
export default class SocketPoint {
getSocketPointFn: () => Promise<SocketPointInfo>;
private socketPointInfo?;
constructor(getSocketPointFn: () => Promise<SocketPointInfo>);
init(): Promise<void>;
get(): Promise<SocketPointInfo>;
}
export {};