setNotificationHandler

fun <T : Notification> setNotificationHandler(method: Method, handler: (notification: T) -> Deferred<Unit>)(source)
fun <T : Notification> setNotificationHandler(sessionId: String, method: Method, handler: (notification: T) -> Deferred<Unit>)(source)