oberstet/Autobahn — Issue #90: Calling Autobahn from threads
Author: oberstet
Created: 2012-02-08 12:00:28+00:00
State: open
Labels: doc

Document:

When calling Autobahn methods from a background worker thread (any thread _not_ the one running the Twisted reactor), one needs to do i.e.

reactor.callFromThread(self.factory._dispatchEvent, "http://www.example.com/event#updated", data)

instead of

factory._dispatchEvent("http://www.example.com/event#updated", data)

==

If not, strange things will happen ..