notify method

Server-originated notification (what a dashboard workflow's "notify the app" step does): delivered live over the user's socket, attached to the user's latest open conversation (created if needed).

Implementation

KletsoEventEnvelope notify(String endUserId, KletsoAppNotification n) {
  final target = _conversationFor(endUserId);
  return target.add(KletsoEventTypes.appNotify, n.toJson());
}