There is cool feature in the Adobe Flash - ExternalInterfacehttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html
Is it possible to implement something like this in Defold?
There is nothing available right now but it is requested by multiple teams already and it will probably be given a high priority as soon as we've shipped the extension system and live update feature.
Ok, thats good news. Thanks.
Haven't used websockets on either js or lua before, but i should give it a try, thanks! Any hints on websockets in lua? Or any standart websockets library should work with defold in theory?
Yes, js communication is really important feature.Without this feature html5 build is too narrowly specialized.
Many people often ask me about this possibility in defold.By popularity this question as question about native extension.
Take a look at my DefNet project and specifically the section about websockets. It should hopefully give you some clues as to how to proceed. I will not have time to investigate this myself right now I'm afraid.
I believe that JS communication will be worked on as soon as we have finished the work on native extensions and live update. I agree that it is an important feature.