17 lines
411 B
TypeScript
17 lines
411 B
TypeScript
import { app } from './index'
|
|
import { RemoteApp } from '@kevisual/remote-app'
|
|
|
|
app.createRouteList()
|
|
|
|
export const run = async (username: string) => {
|
|
const remote = new RemoteApp({
|
|
app,
|
|
id: 'project-search',
|
|
username: username,
|
|
});
|
|
const isConnect = await remote.isConnect();
|
|
if (isConnect) {
|
|
console.log('Remote app connected successfully', isConnect);
|
|
remote.listenProxy();
|
|
}
|
|
} |