package com.cmvr.framework.websocket.handler;

import com.cmvr.framework.websocket.annotation.WSMessageType;
import com.cmvr.framework.websocket.enums.WSMessageTypeEnum;
import com.cmvr.framework.websocket.message.WSHeartbeatMessage;
import org.springframework.web.socket.WebSocketSession;
import java.io.IOException;

@WSMessageType(value = WSMessageTypeEnum.HEARTBEAT, messageClass = WSHeartbeatMessage.class)
public class HeartbeatMessageHandler implements WSMessageHandler<WSHeartbeatMessage>{
    @Override
    public void handle(WebSocketSession session, WSHeartbeatMessage message) throws IOException {
        System.out.println("heartbeat");
    }
}
