Deploy: 2026-06-24 15:32:02
This commit is contained in:
@@ -455,11 +455,17 @@ function getActiveSessions() {
|
||||
return Array.from(sessions.keys());
|
||||
}
|
||||
|
||||
function isSessionReady(session_key) {
|
||||
const sock = sessions.get(session_key);
|
||||
return !!(sock && sock.user);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
startSession,
|
||||
disconnectSession,
|
||||
sendMessage,
|
||||
getActiveSessions,
|
||||
checkContact
|
||||
checkContact,
|
||||
isSessionReady
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user