feat(client): 实现可编辑岛组件方案与连接更新状态反馈
This commit is contained in:
1 parent
35b252249d
commit
b990701cde
26 files changed
+2014
-275
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { EventEmitter } from 'node:events';
|
||||
export type ConnectionEvent = 'server-changed' | 'token-changed' | 'login' | 'logout';
|
||||
export const connectionEvents = new EventEmitter();
|
||||
export function connectionChanged(event: ConnectionEvent) {
|
||||
connectionEvents.emit('changed', event);
|
||||
}
|
||||
Reference in new issue
Block a user