I need to find a way to communicate between Firefox for Android (fennec) and my Android service. One of the solution was to communicate using WebSockets Code:
var ws = new WebSocket("ws://localhost:8887/");
ws.onopen = function() {
console.log("SENDING");
ws.send("Hello messsage");
}
06-16 13:14:10.099: I/Gecko(8055): Message: ReferenceError: WebSocket is not defined
Is WebSocket supported in fennec addons?