view salut.tac @ 3:593345584d21 default tip

replace ad-hoc commands "subscribe" and "unsubscribe" with a single "update" command
author souliane <souliane@mailoo.org>
date Wed, 02 Sep 2015 14:02:50 +0200
parents d1bc50b64974
children
line wrap: on
line source

from twisted.application import service
from twisted.words.protocols.jabber import jid
from wokkel.component import Component

from salut import SalutGateway

application = service.Application("Salut directory")

xmppcomponent = Component("necton3.int", 5347, "salut.necton3.int", "pass")
# xmppcomponent.logTraffic = True
salut = SalutGateway()
salut.setHandlerParent(xmppcomponent)
xmppcomponent.setServiceParent(application)