
io.github.dszopa.message_router.annotation.Route.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of message-router Show documentation
Show all versions of message-router Show documentation
Improved Spark socket message handling, using frameworks like SocketIO for inspiration
package io.github.dszopa.message_router.annotation
// TODO: add support for route being a regex string
/**
* A funtion-level annotation that specifies that the function should be ran when
* a socket request in JSON format with a "route" value matches the given value
* for the route annotation.
*/
@MustBeDocumented
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
annotation class Route(val value: String)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy