is this possible to convert socket into django channels #1661
Replies: 2 comments
-
I am not sure how you want to integrate django channel with your application. I mean I am not sure whether you want to integrate on the sending side (the one sending data using TCP .... to someone else) / receiving side.
|
Beta Was this translation helpful? Give feedback.
-
I think there's probably some confusion. TCP connection is a transport layer (4), whereas Websocket/HTTP happens a few layers higher on the application layer (7), so you cant "convert" it. You have to build an abstractions layers to make the data structure conforming the Websocket protocol (or whatever Application Layer Protocol you choose). |
Beta Was this translation helpful? Give feedback.
-
hi,
I am integrating one device that device will send data using TCP protocol to given IP address this https://www.codegrepper.com/code-examples/python/Recieve+and+send+data+with+tcp+sockets+python works fine, using the IP address but how to convert into Django channels?
Beta Was this translation helpful? Give feedback.
All reactions