emitEvent

expect fun emitEvent(contextId: String, users: List<UserWithPubKey>, channelName: String, eventData: ByteArray)

Emits the custom event on the given Context and channel.

Parameters

contextId

ID of the Context

users

list of UserWithPubKey objects which defines the recipients of the event

channelName

name of the Channel

eventData

event's data

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed

actual fun emitEvent(contextId: String, users: List<UserWithPubKey>, channelName: String, eventData: ByteArray)

Emits the custom event on the given Context and channel.

Parameters

contextId

ID of the Context

users

list of UserWithPubKey objects which defines the recipients of the event

channelName

name of the Channel

eventData

event's data

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed

actual external fun emitEvent(contextId: String, users: List<UserWithPubKey>, channelName: String, eventData: ByteArray)

Emits the custom event on the given Context and channel.

Parameters

contextId

ID of the Context

users

list of UserWithPubKey objects which defines the recipients of the event

channelName

name of the Channel

eventData

event's data

Throws

thrown when method encounters an exception

thrown when method encounters an unknown exception

thrown when instance is closed