I'm not sure what you mean by "socket service". Sorry if this is a common
nodejs thing?

If you have control over the server side code and can change it then I
would recommend that you make it implement the WebSocket protocol. That way
you don't have to request any special permissions on the client side.

Likewise, if you can make the server support HTTP and CORS then you can
simply use XMLHttpRequest and you won't need any permissions on the client
side.

Or if you are writing a hosted app then all you need is for the server to
speak HTTP and then you can simply use XMLHttpRequest and make normal
same-origin requests.

If there already is a protocol on the server side that you can't change,
then the question is what protocol that is. If it's normal HTTP then you
can request systemXHR permission and use XMLHttpRequest.

Otherwise you might need to ask for tcpsocket permission and use the
mozTCPSocket API.

/ Jonas
On Apr 14, 2013 6:47 AM, "jose llopis" <[email protected]> wrote:

> do i need any specific permission for running an app wich speaks with a
> nodejs socket service?
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to