package kr.wisestone.owl.config.websocket; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; import org.springframework.data.redis.listener.ChannelTopic; import java.util.Map; @Service public class RedisPublisher { @Autowired private RedisTemplate redisTemplate; public void publish(ChannelTopic channelTopic, Map message) { this.redisTemplate.convertAndSend(channelTopic.getTopic(), message); } }