热更新:handler监听热更新

This commit is contained in:
qiaoxin
2021-07-16 11:29:26 +08:00
parent dc15862207
commit fc1b2c080e
65 changed files with 321 additions and 254 deletions

View File

@@ -1,7 +1,8 @@
import { Application, ChannelService, FrontendSession, RemoterClass } from 'pinus';
import { Application, ChannelService, FrontendSession, RemoterClass, HandlerService, } from 'pinus';
import { reloadResources } from '../../../pubUtils/data';
export default function (app: Application) {
new HandlerService(app, {});
return new BattleRemote(app);
}
@@ -70,7 +71,7 @@ export class BattleRemote {
channel.leave(uid, sid);
}
}
/**
* 重载json资源
*/