Difference between Socket and Rpc in Detail?

535 views
Skip to first unread message

iggi13

unread,
Apr 17, 2012, 1:22:00 PM4/17/12
to eas...@googlegroups.com
Hello,

what is the difference between Socket and Rpc? I use easyXDM in my Application. My Website get data from an iframe and save it via a Web SQL Database.
In both variants the data were submitted.

When the Website use the Rpc-mechanism, then the code in the callback-function from the transaction-Method isnt called.

 db.transaction(function(tx){
//code
}

If the Website use Sockets, then the code is called. 

Are there any Threads in the Rpc-mechanism, they were close before the callback-Function is called? Or what explain this behavior? 

An Solution is, that i transform the data in an json-String and submit over the socket, but i want understand this behavior. Can anyone help me?

br iggi13

iggi13

unread,
Apr 18, 2012, 8:36:19 AM4/18/12
to eas...@googlegroups.com
Hello,

i was confused. I change the Web Application to use postMessage and the callback isnt also called.

What can i do?

br iggi13
Reply all
Reply to author
Forward
0 new messages