WebSocket

object WebSocket
Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

final class KeepAlive[F[_]](socket: WebSocket, settings: KeepAliveSettings)(implicit evidence$13: Async[F])

Value members

Concrete methods

def connect[F[_] : Async, Msg](address: String)(resultToMessage: WebSocketConnect[F] => Msg): Cmd[F, Msg]

Acquires a WebSocket connection with default keep-alive message

Acquires a WebSocket connection with default keep-alive message

def connect[F[_] : Async, Msg](address: String, onOpenMessage: String)(resultToMessage: WebSocketConnect[F] => Msg): Cmd[F, Msg]

Acquires a WebSocket connection with default keep-alive message and a custom message onOpen

Acquires a WebSocket connection with default keep-alive message and a custom message onOpen

def connect[F[_] : Async, Msg](address: String, keepAliveSettings: KeepAliveSettings)(resultToMessage: WebSocketConnect[F] => Msg): Cmd[F, Msg]

Acquires a WebSocket connection with custom keep-alive message

Acquires a WebSocket connection with custom keep-alive message

def connect[F[_] : Async, Msg](address: String, onOpenMessage: String, keepAliveSettings: KeepAliveSettings)(resultToMessage: WebSocketConnect[F] => Msg): Cmd[F, Msg]

Acquires a WebSocket connection with a custom keep-alive message and a custom message onOpen

Acquires a WebSocket connection with a custom keep-alive message and a custom message onOpen