Left here for archival purposes.

User avatar
By TerryE
#16705
ashwinispatil wrote:can I go for uploading a file containing real time data from client to server. If yes then how?

Yes, There are lots of examples here on this forum and in the firware distributions lua_examples directory. Also search this site for "github" because many people including me make their code available for examples and reuse.
ashwinispatil wrote:Well, I can establish client server communication successfully using above given code.
My suggestion no. This are simpler ways of doing this. TCP is an assured delivery mechanism. Once you've established the connection then you can send and receive reliably and know that you are doing so unless you get an unexpected on("disconnect") event.