remove socketEvents, use ws instead for events

This commit is contained in:
Adhiraj Singh
2021-08-21 20:31:18 +05:30
parent 1fdc385307
commit 1a5b638859
5 changed files with 28 additions and 35 deletions

View File

@@ -1,5 +1,4 @@
import BinaryNode from "../BinaryNode";
import { EventEmitter } from 'events'
import { Chat, Contact, Presence, PresenceData, SocketConfig, WAFlag, WAMetric, WABusinessProfile, ChatModification, WAMessageKey, WAMessage, WAMessageUpdate } from "../Types";
import { debouncedTimeout, unixTimestampSeconds, whatsappID } from "../Utils/generics";
import makeAuthSocket from "./auth";
@@ -10,7 +9,7 @@ const makeChatsSocket = (config: SocketConfig) => {
const sock = makeAuthSocket(config)
const {
ev,
socketEvents,
ws: socketEvents,
currentEpoch,
setQuery,
query,