PythonPusherClient icon indicating copy to clipboard operation
PythonPusherClient copied to clipboard

Message callbacks should be called in the main thread

Open aalex opened this issue 10 years ago • 1 comments

When we receive some data, the callback is called in the web socket channel's thread. It can lead to serious issues when mixed with other non thread-safe calls.

aalex avatar Dec 14 '14 18:12 aalex

I had severe issues when using this library within a Twisted project. I tried to handle this non-thread-safe code like this: http://twistedmatrix.com/documents/current/core/howto/threading.html - but it didn't quite work.

aalex avatar Jan 27 '15 15:01 aalex