feat: add group message dispatcher
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user