signal

expect abstract fun signal(channel: String, message: Any, customMessageType: String? = null): Signal
actual abstract fun signal(channel: String, message: Any, customMessageType: String?): Signal

Send a signal to all subscribers of a channel.

By default, signals are limited to a message payload size of 30 bytes. This limit applies only to the payload, and not to the URI or headers. If you require a larger payload size, please contact support.

Parameters

channel

The channel which the signal will be sent to.

message

The payload which will be serialized and sent.

customMessageType

The custom type associated with the message.

actual abstract fun signal(channel: String, message: Any, customMessageType: String?): Signal