All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.twitch4j.eventsub.socket.events.EventSocketConnectionStateEvent Maven / Gradle / Ivy

There is a newer version: 1.23.0
Show newest version
package com.github.twitch4j.eventsub.socket.events;

import com.github.twitch4j.client.websocket.domain.WebsocketConnectionState;
import com.github.twitch4j.eventsub.socket.TwitchEventSocket;
import lombok.Value;

/**
 * Called when the connection state of an EventSocket changes.
 */
@Value
public class EventSocketConnectionStateEvent {

    /**
     * The previous state of the websocket.
     */
    WebsocketConnectionState previousState;

    /**
     * The updated state of the websocket.
     */
    WebsocketConnectionState state;

    /**
     * The EventSocket instance whose connection status changed.
     */
    TwitchEventSocket connection;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy