WebSocketF

com.malliina.http.io.WebSocketF
See theWebSocketF companion object
class WebSocketF[F[_]](val url: FullUrl, headers: Map[String, String], backoffTime: FiniteDuration, client: OkHttpClient, topic: Topic[F, SocketEvent], interrupter: SignallingRef[F, Boolean], d: Dispatcher[F])(implicit evidence$1: Async[F]) extends WebSocketOps[F]

Attributes

Companion
object
Graph
Supertypes
trait WebSocketOps[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close: F[Unit]
def messagesAs[T : Decoder]: Stream[F, T]
def requestFor(url: FullUrl, headers: Map[String, String]): Builder
def sendMessage(message: String): F[Boolean]

Inherited methods

def send[T : Encoder](message: T): F[Boolean]

Attributes

Inherited from:
WebSocketOps

Concrete fields

val allEvents: Stream[F, SocketEvent]
val connectOnce: F[WebSocket]
val connectSocket: F[WebSocket]
val events: Stream[F, SocketEvent]

Connects to the source, retries on failures with exponential backoff, and returns any non-failure events.

Connects to the source, retries on failures with exponential backoff, and returns any non-failure events.

Run close to interrupt.

Attributes

Use events instead.

Use events instead.

Attributes

val jsonMessages: Stream[F, Json]
val messages: Stream[F, String]
val request: Request
val url: FullUrl