feat: functional legacy socket

This commit is contained in:
Adhiraj Singh
2021-12-17 20:58:33 +05:30
parent d8b415a075
commit c803e22e8a
15 changed files with 695 additions and 66 deletions

View File

@@ -1,4 +1,5 @@
import makeWASocket from './Socket'
import makeWALegacySocket from './LegacySocket'
export * from '../WAProto'
export * from './Utils'
@@ -7,6 +8,10 @@ export * from './Types'
export * from './Defaults'
export * from './WABinary'
export type WALegacySocket = ReturnType<typeof makeWALegacySocket>
export { makeWALegacySocket }
export type WASocket = ReturnType<typeof makeWASocket>
export default makeWASocket