Twisted WAMP ApplicationRunner and TLS

#1

Hello everyone,

I’ve built a WAMP application server using an instance of ApplicationRunner as follows:

from autobahn.twisted.wamp import ApplicationRunner

from pingu.system.wamp import MyApplicationSessionName

wapp = ApplicationRunner(“ws://localhost:8081/ws”, “realm1”, standalone=True)

wapp.run(MyApplicationSessionName, start_reactor=False)

Now i have to use TLS, but the only doc/example that i’ve found is this:

https://github.com/tavendo/AutobahnPython/blob/master/examples/twisted/websocket/echo_tls/server.py

This example is for /twisted/websocket, but i need of something for /twisted/wamp

Can someone help me?

Thanks in advance

0 Likes

#2

ApplicationRunner already supports TLS. Simply feed it a secure WebSocket URL like eg

wss://someserver.com/somepath

···

Sent from Mobile (Google Nexus 5)

Am 10.02.2015 15:25 schrieb “Paolo Acampa” paolo....@gmail.com:

Hello everyone,

I’ve built a WAMP application server using an instance of ApplicationRunner as follows:

from autobahn.twisted.wamp import ApplicationRunner

from pingu.system.wamp import MyApplicationSessionName

wapp = ApplicationRunner(“ws://localhost:8081/ws”, “realm1”, standalone=True)

wapp.run(MyApplicationSessionName, start_reactor=False)

Now i have to use TLS, but the only doc/example that i’ve found is this:

https://github.com/tavendo/AutobahnPython/blob/master/examples/twisted/websocket/echo_tls/server.py

This example is for /twisted/websocket, but i need of something for /twisted/wamp

Can someone help me?

Thanks in advance

You received this message because you are subscribed to the Google Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send an email to autobahnws+...@googlegroups.com.

To post to this group, send email to autob...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/c83e3888-a651-462a-b0a8-1c3050342df6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes