Skip to content

Repository files navigation

Engine.IO-client Java (ParadiseDevTeam fork)

Fork of socketio/engine.io-client-java1.0.2, maintained at ParadiseDevTeam/engine.io-client-java.

Changes from upstream 1.0.2 (feature/custom-event-executor)

  • Added EventThread#setExecutor to run socket callbacks on a caller-supplied Executor.
  • Fixed ExecutionTest to launch its subprocess via java directly instead of mvn exec:java.
  • Updated dependencies to their latest versions (okhttp, org.json, junit, hamcrest-library).
  • Migrated the build from Maven (pom.xml) to Gradle (build.gradle.kts).
  • Publishes to repo.prdis.me (Reposilite) instead of Maven Central.

Usage

Add the dependency (Gradle)

repositories {
maven { url = uri("https://repo.prdis.me/releases") }
}
dependencies {
implementation("io.socket:engine.io-client:1.0.2-patch.1")
}

Route callbacks through a custom Executor

Call this once, before opening any Socket, to receive every callback on your own Executor instead of the library's internal one:

EventThread.setExecutor(myExecutor);

Pass null to restore the default internal executor. This is a single, process-wide setting shared by every Socket instance in the JVM.

License

MIT (unchanged from upstream)

About

Engine.IO Client Library for Java

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages