|
@@ -172,6 +172,15 @@ export class SocketGateway
|
|
|
await this.roomService.handleExitAction(socket, message);
|
|
|
}
|
|
|
|
|
|
+ // 订阅同步楼层事件
|
|
|
+ @SubscribeMessage('sync-floor')
|
|
|
+ async handleSyncFloor(
|
|
|
+ @ConnectedSocket() socket: Socket,
|
|
|
+ @MessageBody() message: any,
|
|
|
+ ): Promise<void> {
|
|
|
+ await this.roomService.handleSyncFloorAction(socket, message);
|
|
|
+ }
|
|
|
+
|
|
|
@SubscribeMessage('active-status')
|
|
|
async handleActive(@ConnectedSocket() socket: Socket) {
|
|
|
const sockets = await this.server.fetchSockets();
|