Connection

expect class Connection : AutoCloseable

Manages a connection between the PrivMX Endpoint and PrivMX Bridge server.

actual class Connection : AutoCloseable

Manages a connection between the PrivMX Endpoint and PrivMX Bridge server

actual class Connection : AutoCloseable

Manages a connection between the PrivMX Endpoint and PrivMX Bridge server.

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
expect open override fun close()

If there is an active connection then it disconnects from PrivMX Bridge and frees memory making this instance not reusable.

actual open override fun close()

If there is an active connection then it disconnects from PrivMX Bridge and frees memory making this instance not reusable.

actual open override fun close()

If there is an active connection then it disconnects from PrivMX Bridge and frees memory making this instance not reusable.

Link copied to clipboard
expect fun disconnect()

Disconnects from PrivMX Bridge server.

actual fun disconnect()

Disconnects from PrivMX Bridge server.

actual external fun disconnect()

Disconnects from PrivMX Bridge server.

Link copied to clipboard
expect fun getConnectionId(): Long?

Gets the ID of the current connection.

actual fun getConnectionId(): Long?

Gets the ID of the current connection.

actual fun getConnectionId(): Long?

Gets the ID of the current connection.

Link copied to clipboard
expect fun listContexts(skip: Long, limit: Long, sortOrder: String = "desc", lastId: String? = null): PagingList<Context>

Gets a list of Contexts available for the user.

actual fun listContexts(skip: Long, limit: Long, sortOrder: String, lastId: String?): PagingList<Context>

Gets a list of Contexts available for the user.

actual external fun listContexts(skip: Long, limit: Long, sortOrder: String, lastId: String?): PagingList<Context>

Gets a list of Contexts available for the user.