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