Skip to content

Instantly share code, notes, and snippets.

@spiiin
Created December 13, 2017 22:39
Show Gist options
  • Save spiiin/5f425e2c769e766bb5fb8d4a51b65bbc to your computer and use it in GitHub Desktop.
Save spiiin/5f425e2c769e766bb5fb8d4a51b65bbc to your computer and use it in GitHub Desktop.
from autobahn.twisted.wamp import ApplicationRunner
from os import environ
class MyBackend(ApplicationSession):
#code of backend skipped
runner = ApplicationRunner(
environ.get("AUTOBAHN_DEMO_ROUTER", u"wss://example.com:8080/ws"),
u"realm1",
)
runner.run(MyBackend)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment