package com.fjhx.event;

import com.fjhx.service.WebSocketServer;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * webStock推送的用户离线事件
 */
@Getter
public class WebSocketOnErrorEvent extends ApplicationEvent {

    private final Throwable throwable;

    public WebSocketOnErrorEvent(WebSocketServer source, Throwable throwable) {
        super(source);
        this.throwable = throwable;
    }

}