Class EventSocketConnectionStateEvent
java.lang.Object
com.github.twitch4j.eventsub.socket.events.EventSocketConnectionStateEvent
Called when the connection state of an EventSocket changes.
-
Constructor Summary
ConstructorDescriptionEventSocketConnectionStateEvent
(WebsocketConnectionState previousState, WebsocketConnectionState state, TwitchEventSocket connection) Creates a newEventSocketConnectionStateEvent
instance. -
Method Summary
-
Constructor Details
-
EventSocketConnectionStateEvent
public EventSocketConnectionStateEvent(WebsocketConnectionState previousState, WebsocketConnectionState state, TwitchEventSocket connection) Creates a newEventSocketConnectionStateEvent
instance.- Parameters:
previousState
- The previous state of the websocket.state
- The updated state of the websocket.connection
- The EventSocket instance whose connection status changed.
-
-
Method Details
-
getPreviousState
The previous state of the websocket. -
getState
The updated state of the websocket. -
getConnection
The EventSocket instance whose connection status changed. -
equals
-
hashCode
public int hashCode() -
toString
-