chore: make APIs similar for legacy + MD

This commit is contained in:
Adhiraj Singh
2021-12-18 16:44:31 +05:30
parent c803e22e8a
commit e393f0f9a8
7 changed files with 33 additions and 30 deletions

View File

@@ -64,7 +64,7 @@ const makeAuthSocket = (config: LegacySocketConfig) => {
*/
const logout = async() => {
if(state.connection === 'open') {
await socket.sendMessage({
await socket.sendNode({
json: ['admin', 'Conn', 'disconnect'],
tag: 'goodbye'
})
@@ -178,7 +178,7 @@ const makeAuthSocket = (config: LegacySocketConfig) => {
return
}
logger.info('sending login request')
socket.sendMessage({
socket.sendNode({
json,
tag: loginTag
})