All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.micronaut.starter.cli.feature.server.websocket.kotlinWebsocketClient.rocker.raw Maven / Gradle / Ivy

@import io.micronaut.starter.application.Project

@args (
Project project
)

@if (project.getPackageName() != null) {
package @project.getPackageName()
}


import io.micronaut.websocket.WebSocketSession
import io.micronaut.websocket.annotation.*

@@ClientWebSocket("/@project.getPropertyName()/{topic}/")
abstract class @project.getClassName()Client : AutoCloseable {

    var session: WebSocketSession? = null
        private set

    @@OnOpen
    fun onOpen(session: WebSocketSession) {
        this.session = session
    }

    @@OnMessage
    fun onMessage() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy