public interface WorkerFactory<R extends Endpoint<R,L>,L extends Endpoint<L,R>>
| Modifier and Type | Method and Description |
|---|---|
R |
createDedicatedWorker(String pathToJs,
L local)
Creates a worker with the remote JS connected to the local endpoint.
|
R |
createSharedWorker(String pathToJs,
L local) |
R |
wrapRemoteMessagePort(MessagePort remote,
L local) |
R createDedicatedWorker(String pathToJs, L local)
pathToJs - the path to the JS file which will describe this workerlocal - the local interface which the new remote worker can send messages toR wrapRemoteMessagePort(MessagePort remote, L local)
Copyright © 2011–2018 Vertispan LLC. All rights reserved.