...
For reference, installed the GUI host on Windows 7 Home Professional.
Booting WebSocket Connection
The GUI host must signal to the LBR when it wishes to connect. This signal must trigger the LBR to connect to the GUI hosts's WebSocket server. We leverage the POSIX signal facility to accomplish this goal.
Remote GUI | LBR |
---|---|
On startup, create a signal handler on SIGUSR1 | |
At some later time...
| |
Signal received, and handler connects to WebSocket serverws://<remoteip>:8000 /lbr |
The signal above assumes the LBR is in the form of the openVisualizerCli module, which probably is the simplest solution.
JSON Messages
JSON provides a convenient and widely accepted mechanism for implementation of the structured messages we must pass between LBR and GUI host. Messages include:
...