D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
washeet.softurecs.com
/
node_modules
/
baileys
/
lib
/
Socket
/
Filename :
index.js
back
Copy
import { DEFAULT_CONNECTION_CONFIG } from '../Defaults/index.js'; import { makeCommunitiesSocket } from './communities.js'; // export the last socket layer const makeWASocket = (config) => { const newConfig = { ...DEFAULT_CONNECTION_CONFIG, ...config }; // If the user hasn't provided their own history sync function, // let's create a default one that respects the syncFullHistory flag. // TODO: Change if (config.shouldSyncHistoryMessage === undefined) { newConfig.shouldSyncHistoryMessage = () => !!newConfig.syncFullHistory; } return makeCommunitiesSocket(newConfig); }; export default makeWASocket; //# sourceMappingURL=index.js.map