MessageEndpointListener

MessageEndpointListener to serve incoming message endpoint connection.

actual class MessageEndpointListener(config: MessageEndpointListenerConfiguration) : DelegatedClass<<Error class: unknown class>> (source)

Constructors

Link copied to clipboard
expect constructor(config: MessageEndpointListenerConfiguration)
actual constructor(config: MessageEndpointListenerConfiguration)
actual constructor(config: MessageEndpointListenerConfiguration)

Functions

Link copied to clipboard
expect fun accept(connection: MessageEndpointConnection)

Accept a new connection.

actual fun accept(connection: MessageEndpointConnection)
actual fun accept(connection: MessageEndpointConnection)
Link copied to clipboard

Add a change listener.

Add a change listener with a CoroutineContext that will be used to launch coroutines the listener will be called on. Coroutines will be launched in a CoroutineScope that is canceled when the listener is removed.

Add a change listener with a CoroutineScope that will be used to launch coroutines the listener will be called on. The listener is removed when the scope is canceled.

Link copied to clipboard
expect fun close(connection: MessageEndpointConnection)

Close the given connection.

actual fun close(connection: MessageEndpointConnection)
actual fun close(connection: MessageEndpointConnection)
Link copied to clipboard
expect fun closeAll()

Close all connections active at the time of the call.

actual fun closeAll()
actual fun closeAll()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard

Remove a change listener.

Link copied to clipboard
open override fun toString(): String