Very(very) basic initial implementaion of the Proxy Server. proxy_server.py: Python file that handles requests coming over ws and publishes them to 0mq pub/sub. Also, subscribes for messages from middleware and sends them to the UI client. sub.py: mock implementation of middleware ws_client.py: mock implementation of UI
Requires: python3.6
Steps: Installation: ./install.sh Above installation will install all the required packages
To execute the code:
- python3.6 sub.py
- python3.6 proxy_server.py
- python3.6 ws_client.py
Current Implementation:
- When the ws_client is started, a protobuf encoded request is pushed to the websoclet.
- Proxy server gets the request and publishes it to a 0mq pub
- a 0mq subscriber (sub.py) listens to incoming messages and creates a mock protobuf response object.
- Proxy Server receives this message and sends it to the UI (ws_client) over websockets