Skip to content

BlueDragon's set of IPC messages, utilizing BlueDragonMC/MessagingSystem.

Notifications You must be signed in to change notification settings

BlueDragonMC/Messages

Repository files navigation

Messages

Installation

Publish the artifact to your local maven repository:

./gradlew build publishToMavenLocal

Use it in a Gradle build file:

dependencies {
    implementation("com.bluedragonmc:messages:$version")
}

Usage

// Create a client to connect to RabbitMQ
val client = AMQPClient(hostname = "rabbitmq", port = 5672, polymorphicModuleBuilder = polymorphicModuleBuilder)

You must use the polymorphicModuleBuilder found in Messages.kt in the constructor of your AMQPClient. This is because all subclasses (in an open polymorphic setup like this one) must be registered in kotlinx.serialization for security reasons.

About

BlueDragon's set of IPC messages, utilizing BlueDragonMC/MessagingSystem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages