This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autobahn client with auto-reconnect capability | |
# Totally based on https://github.com/tavendo/AutobahnPython/blob/master/examples/twisted/wamp/beginner/client.py | |
import sys | |
from twisted.python import log | |
from twisted.internet import reactor | |
from twisted.internet.defer import inlineCallbacks | |
from twisted.internet.protocol import ReconnectingClientFactory | |
from autobahn.twisted import wamp, websocket | |
from autobahn.wamp import types |