'How to Send Large Json from node.js to Android app kotlin with socket

Hello, when I send a large JSON from the server to the Android application, it is not received in the application direction, but when I send the greeting, it is received in the Android application, JSON , I am producing an Android application and I am happy. Help me in this regard

Server side code

     socket.on("loadForLoginInformation", (data,callbackSocket) => {
               let getLargeStringEncoded(function(largeStrEncoded){
                   callbackSocket({"enc":largeStrEncoded})//642988 characters
               }) 
     })

Android app side code

socket!!.emit("loadForLoginInformation",modelSendJson,
Ack { args ->
requireActivity.runOnUiThread {
    //not call recive json in client side ?????                 
}

})



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source