Receive Websocket Message from extern task

20 views
Skip to first unread message

matrix1900

unread,
Oct 23, 2017, 10:40:17 AM10/23/17
to Django users
Hello together,


how can I receive websocket messages form a extern python -task. I need a example to receive websocket messages from a defined group.  I can send messages to a existing Websocket Group with:
 from channels import Group and function Group('sensor').send({'text': 'Hello, world!'})

But receive websockets from extern python task is not possible???


Andrew Godwin

unread,
Oct 23, 2017, 2:14:37 PM10/23/17
to django...@googlegroups.com
I'm not sure what you mean by "receive websockets from an external Python task" - if you want to connect out to your server using a WebSocket from Python, there are libraries that do that.

Andrew

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3ef6a512-34e6-4b7b-9a46-2490d6d3d9e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages