One option is to do
factory = WebSocketClientFactory("ws://localhost:7096")
factory.job_queue = Queue.Queue()
factory.protocol = BridgeSocket
and then access the shared queue from within your protocol like this
class BridgeSocket(WebSocketClientProtocol):
def onMessage(self, payload, isBinary):
self.factory.job_queue.put(payload)
*Sidenote: Are you using AutobahnPython trunk from GitHub? You should be using a tagged version or the latest from PyPI (0.6.5).*