Share files with single or multiple users
// share with all users connection.shareFile(file); // share with specific user only connection.shareFile(file, 'remote-user-id');
If you send file using send method, it will invoke "shareFile" internally. So both are same in functionality.