onPluginMessage

open fun onPluginMessage(plugin: DytePlugin, eventName: String, data: Any?)

On plugin message Triggered when a Plugin sends a custom event to client.

Parameters

plugin

sender DytePlugin

eventName

Name of the event

data

Optional data sent by the Plugin. It can assume any Primitive, String, List & Map type.