SocketClient

class SocketClient(val uri: FullUrl, socketFactory: SSLSocketFactory, headers: Seq[KeyValue], connectTimeout: FiniteDuration) extends Closeable

A WebSocket client.

Creating an instance of this class will open and maintain a WebSocket to uri.

Supports automatic reconnections. Calling close() will close any open resources and cancel future reconnections, after which this instance must no longer be used.

Companion
object
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any

Value members

Concrete methods

override def close(): Unit
Definition Classes
Closeable -> AutoCloseable
def initialConnection: Future[URI]
def isConnected: Boolean
def isEnabled: Boolean
def onText(message: String): Unit
def send(message: String): WebSocket

Concrete fields

val uri: FullUrl