setNotificationHandler
fun <T : Notification> setNotificationHandler(method: Method, handler: (notification: T) -> Deferred<Unit>)(source)
Registers a notification handler for the given method on all active sessions.
fun <T : Notification> setNotificationHandler(sessionId: String, method: Method, handler: (notification: T) -> Deferred<Unit>)(source)
Registers a notification handler for the given method on a specific session.