I try to use them for the first time and be surprised that I headed in the right direction.
Here are my arrangements,
socket.io is a wrapper around websocket and returns to suboptimal solutions when websocket is unavailable.
Django channels can also talk to websocket.
(I think it converts django to a message queue as a system, although this understanding or misunderstanding should influence this question)
So, I am trying to use Django channels on the server and socket.io-client on the client.
socket.io has an api that looks like
socket.on(type, (payload)=> {})
While Django channels are shaped
message.reply_channel.send({ "text": json })
is the text type socket.on(type) ?
Can Django and socket.io-client channels talk to each other?
eugene
source share