Handle new Friend

It is possible to handle new friendship in real time as follows

session.getNotification().addNotificationListener(new AbstractNotificationCallback() {
  @Override
  public void onFriend(@NotNull User user) {
    // received new Friendship
  }
});
session.websocket.onFriend((user: User) => {
    
});
session.websocket.onFriend((user) => {
    
});