Re: Handling multiple protocols in Channels 2

2019-05-06 Thread Andrea Conti
Ok, but that doesnt'solve the problem with handling the events in the right process. Anyway, I think I figured it out. It seems there is nothing magical to a 'protocol handler' after all, so I can just create a thread with its event loop and run the MQTT listener in there. No other processes r

Re: Handling multiple protocols in Channels 2

2019-05-02 Thread Andrea Conti
nts within another process. Andrea On Thursday, May 2, 2019 at 2:33:01 PM UTC+2, Fly Style wrote: > > > have a try of https://github.com/ruralscenery/channels_mqtt > > Andrea Conti於 2019年5月2日星期四 UTC+8下午7時40分20秒寫道: >> >> Hello, >> >> I am trying to use Chan

Handling multiple protocols in Channels 2

2019-05-02 Thread Andrea Conti
Hello, I am trying to use Channels 2 to implement an http/websocket application which also handles asynchronous requests from a second source (right now it's messages from an MQTT subscription, but I think the problem is largely independent from the specific protocol). This doesn't seem to be