Hi,
Yes, your understanding is correct regarding the use remote worker to
accomplish cross-domain communication from a client domain to a foreign
domain.

An illustration of the cross domain with remote worker  -

1) a client visits a webapp on foo.com with a Gears-enabled browser
2) the webapp's workerpool creates a worker by loading the worker.js from
bar.com
3) now this "remote" worker on foo.com really has the domain bar.com (since
it was originated from bar.com), and is now capable of being used to
HttpRequest bar.com

Hope that helps,
Austin

On Wed, Oct 22, 2008 at 12:53 PM, Paul Reimer <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I'm currently considering using Gears as a way to accomplish cross-
> domain messaging. While the majority of users will be browsing and
> exchanging data from a Gears-capable browser on a Gears-supported
> platform, I would also like to exchange messages with an embedded
> device running an RTOS.
>
> This device has a web server and an IP stack, but is too resource-
> constrained to run the entire Gears framework, and would only use the
> WorkerPool features anyway.
>
> My question is regarding a WorkerPool API for message passing. If I
> understand the WorkerPool concept correctly, I can add a remote Worker
> to a client-side WorkerPool, and access data from the LocalServer or
> Database on the REMOTE server. This suggests to me that any requests
> for LocalServer content, or queries to the database must first be
> translated to an HTTP request, that is sent to the remote client
> hosting the Worker spec.
>
> My hope is to provide the javascript file for the remote worker from
> the remote webserver, and intercept any HTTP requests sent from a
> client. I can then format the response to these requests so it appears
> that there is a worker functioning at the remote client.
>
> To summarize:
> Given a client using a Gears-capable browser, and a remote HTTP stack,
> is there a way to send a message from the client to the remote server,
> and receive a message as if it were sent from a remote Worker?
>
> Thanks in advance for any help!
>

Reply via email to