bmoscon / cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler
Other
2.14k stars 668 forks source link

Fix Socket backend #960

Closed DSmyungjin closed 1 year ago

DSmyungjin commented 1 year ago

Description of code - what bug does this fix / what feature does this add?

The demo_udp.py file has not been working since version 2.2.1. After adding multiprocessing functionality, the 'update' was changed to 'updates' and socket.py was updated. However, 'update.encode()' was causing error because 'update' is dictionary type and it doesn't has no encode function in it . in the context 'data' has to be there . This issue was resolved, and when running demo_udp.py, it can be confirmed that the bug has been fixed.