Mercurial > libervia-pubsub
view doc/examples/idavoll.tac @ 238:a4511cb06352
fixed tests
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 19 May 2012 01:31:07 +0200 |
parents | 51af2ed8bd50 |
children |
line wrap: on
line source
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. """ Example TAC for Idavoll. """ from twisted.application import service from twisted.words.protocols.jabber.jid import JID from sat_pubsub import tap application = service.Application("Idavoll") config = { 'jid': JID('pubsub.example.org'), 'secret': 'secret', 'rhost': '127.0.0.1', 'rport': 5347, 'backend': 'memory', 'verbose': True, 'hide-nodes': False, } idavollService = tap.makeService(config) idavollService.setServiceParent(application) # Set the maximum delay until trying to reconnect. componentService = idavollService.getServiceNamed('component') componentService.factory.maxdelay = 300