rxmxn / pycoin

0 stars 0 forks source link

Implement WebSocket #7

Closed rxmxn closed 4 years ago

rxmxn commented 4 years ago

We need to add web socket to be able to watch different currencies in real time. The data can be stored in MongoDB.

rxmxn commented 4 years ago

Added logging to the system, thinking about adding threading to run the websocket in a thread. We want to have the websocket running infinitely until a stop command arrives, and be able to do things in the mid time.

rxmxn commented 4 years ago

My current idea is to have one instance of the app running in a docker image, gathering data of only 1 crypto, and each will be agnostic to the others. If we want everything to run in the same image, then an array of currencies can be sent to the websocket client and it will watch all of them.

rxmxn commented 4 years ago

good example: https://www.programcreek.com/python/?code=MediaBrowser%2Fplugin.video.emby%2Fplugin.video.emby-master%2Flibraries%2Femby%2Fcore%2Fws_client.py#