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

dev.robocode.tankroyale.server.connection.IClientWebSocketObserver.kt Maven / Gradle / Ivy

package dev.robocode.tankroyale.server.dev.robocode.tankroyale.server.connection

import org.java_websocket.WebSocket
import org.java_websocket.handshake.ClientHandshake

interface IClientWebSocketObserver {
    fun onOpen(clientSocket: WebSocket, handshake: ClientHandshake)

    fun onClose(clientSocket: WebSocket, code: Int, reason: String, remote: Boolean)

    fun onMessage(clientSocket: WebSocket, message: String)

    fun onError(clientSocket: WebSocket, exception: Exception)

    fun send(clientSocket: WebSocket, message: String)

    fun broadcast(clientSockets: Collection, message: String)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy