I'm implementing an application in Meteor that requires a lot of processing. Because of this, we are attempting to use code written in java. I currently have an embedded web socket server that runs from a jar file, via command line. The idea being that when a user connects to Meteor from a cordova device, the embedded java jar file will be run creating a processing instance for that user.
I can't find any definitive information as to how to run a shell command or if it would be allowed on an android or ios device. I have tried using meteorhacks:npm
and the child_process
packages, but am having little luck with them.
Filesystem:
.
app/
/server
/public
/client
/lib
assets/
server.jar
Websocket:
The embedded server runs on http://localhost:8080
. So a client connecting would be able to connect to their own instance.
Any ideas as to how to run these shell commands?
EDIT:
Yes I do want to run the embedded websocket server ON THE CLIENT.
Upon running the .jar file, a server session would be launched at http://localhost:8080
from the device calling it. In this case, the client's mobile device.