decodeEvent

fun decodeEvent(notification: JsonRpcRequest): DappEvent?

Decodes a notification into a DappEvent, or null when notification names a method that is not an event. Null rather than an exception: an unknown notification is something to ignore, not something to fail a session over.