mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
12 lines
360 B
TypeScript
12 lines
360 B
TypeScript
import { DEFAULT_LEGACY_CONNECTION_CONFIG } from '../Defaults'
|
|
import { LegacySocketConfig } from '../Types'
|
|
import _makeLegacySocket from './groups'
|
|
// export the last socket layer
|
|
const makeLegacySocket = (config: Partial<LegacySocketConfig>) => (
|
|
_makeLegacySocket({
|
|
...DEFAULT_LEGACY_CONNECTION_CONFIG,
|
|
...config
|
|
})
|
|
)
|
|
|
|
export default makeLegacySocket |