Monday, October 23, 2017

Re: Receive Websocket Message from extern task

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

On Mon, Oct 23, 2017 at 7:40 AM, 'matrix1900' via Django users <django-users@googlegroups.com> wrote:
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???


--
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-users@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.

--
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-users@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/CAFwN1upo6QaP7HfNs5P_1uULhd7wJ8WiqKpZJfM%3DBz3f5bLsfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment