Skip to main content

EventHandler - Simple

Description

The SimpleEventHandler will process all events synchronously in the current thread.

Dependencies

build.gradle
dependencies {
implementation 'com.github.philippheuer.events4j:events4j-handler-simple:0.12.2'
}

Set as default in Twitch4J and for eventManager.onEvent

ITwitchClient twitchClient = TwitchClientBuilder.builder()
.withDefaultEventHandler(SimpleEventHandler.class)
.build();