package com.ruoyi.dj.websocket.handler;

import com.ruoyi.dj.websocket.config.CustomWebSocketHandler;
import com.ruoyi.dj.websocket.core.MessageHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @auther 周志雄
 * @date 2024/7/8 18:24
 */
@Component
public class OSD4Handler implements MessageHandler {
    @Autowired
    private CustomWebSocketHandler webSocketHandler;

    @Override
    public void handleMessage(String message) {
        webSocketHandler.sendMessageToAll(message);
    }

    @Override
    public String getType() {
        return "osd4";
    }
}
