spice.http.WebSocket.scala Maven / Gradle / Ivy
package spice.http
import rapid.Task
import reactify.{Channel, Val, Var}
trait WebSocket {
protected val _status: Var[ConnectionStatus] = Var(ConnectionStatus.Closed)
val status: Val[ConnectionStatus] = _status
val send: WebSocketChannels = new WebSocketChannels
val receive: WebSocketChannels = new WebSocketChannels
val error: Channel[Throwable] = Channel[Throwable]
def connect(): Task[ConnectionStatus]
def disconnect(): Unit
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy