feat: add group message dispatcher

This commit is contained in:
merlin
2026-02-27 17:55:40 +08:00
parent d64de39541
commit 31ddd5c4fe
6 changed files with 71 additions and 3 deletions

View File

@@ -28,5 +28,17 @@ public class WebSocketMessageConsumer {
log.info(e.getMessage());
}
}
@RabbitListener(queues = RabbitMQConfig.WS_VIDEO_QUEUE)
public void onVideoMessage(String json) {
try {
JSONObject msg = JSON.parseObject(json);
commandDispatcher.dispatch(msg);
} catch (Exception e) {
log.info(e.getMessage());
}
}
}