Handle Friend Request

It is possible to handle friend requests in real time as follows

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