Can anyone tell that how to convert Django Api's as websocket Api?

Please tell me the answer, I wondering since long but didn't get anything. I have the API's which are working correctly with flutter but now I want to connect all those API's with web socket. Can anyone tell me how to do it?

Api's Example:

  1. path('editpinnames/', myapp_view.devicePinNames), Suppose this is the api and I want to use this work with web sockets. Please I am very thankful to you.
Back to Top