mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
import { DEFAULT_CONNECTION_CONFIG } from '../Defaults'
|
|
import { SocketConfig } from '../Types'
|
|
import { makeBusinessSocket as _makeSocket } from './business'
|
|
|
|
// export the last socket layer
|
|
const makeWASocket = (config: Partial<SocketConfig>) => (
|
|
_makeSocket({
|
|
...DEFAULT_CONNECTION_CONFIG,
|
|
...config
|
|
})
|
|
)
|
|
|
|
export default makeWASocket |