rd-framework / com.jetbrains.rd.framework.base / ExtWire

ExtWire

class ExtWire : IWire

Types

QueueItem

data class QueueItem

Constructors

<init>

ExtWire()

Properties

connected

val connected: <ERROR CLASS><Boolean>

contexts

val contexts: ProtocolContexts

heartbeatAlive

val heartbeatAlive: <ERROR CLASS><Boolean>

heartbeatIntervalMs

var heartbeatIntervalMs: Long

Ping's interval.

Functions

advise

fun advise(lifetime: <ERROR CLASS>, entity: IRdWireable): Unit

Adds a entity for receiving updated values of the object with the given IRdWireable.rdid. The handler is removed when the given lifetime is terminated.

send

fun send(id: RdId, writer: (AbstractBuffer) -> Unit): Unit

Sends a data block with the given id and the given writer function that can write the data.

setupContexts

fun setupContexts(newContexts: ProtocolContexts): Unit

Extension Properties

serverPort

val IWire.serverPort: Int

Extension Functions

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T