|
@@ -230,10 +230,13 @@ export class RoomService {
|
|
|
* @param message
|
|
|
*/
|
|
|
async handleSyncFloorAction(socket: Socket, message: any) {
|
|
|
+ this.logger.warn(`handleSyncFloorAction`, JSON.stringify(message));
|
|
|
if (socket.data?.user) {
|
|
|
const { RoomId } = socket.data?.user;
|
|
|
- this.logger.warn(`handleSyncFloorAction`, JSON.stringify(message));
|
|
|
- socket.broadcast.to(RoomId).emit('action', message);
|
|
|
+ socket.broadcast.to(RoomId).emit('action', {
|
|
|
+ type: 'sync-floor',
|
|
|
+ data: message,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|