Answer the question
In order to leave comments, you need to log in
How to properly establish a persistent websocket connection in a Django project?
Hello.
Gentlemen, experienced programmers, please help me to solve the problem.
Here is a ready-made API for Binance (exchange) that helps to establish a websocket connection with the exchange:
https://github.com/sammchardy/python-binance
As a python script, it works fine. But now I have created a Django project and I want to transfer it to the server so that it receives messages around the clock (without additional manipulations after a reboot) via websocket and does some logic with them. How can I implement it correctly?
Do I have to go the route of using Django Channels, or is there some simple method that escapes my attention?
I'm new to programming, so a more detailed answer would be more helpful :)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question