spice.http.WebSocket.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spice-core_3 Show documentation
Show all versions of spice-core_3 Show documentation
Core functionality leveraged and shared by most other sub-projects of YouI.
package spice.http
import cats.effect.IO
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(): IO[ConnectionStatus]
def disconnect(): Unit
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy