source: doc/listings/client/client1.tac @ 170:bb143a4ae70d

Last change on this file since 170:bb143a4ae70d was 170:bb143a4ae70d, checked in by Ralph Meijer <ralphm@…>, 10 years ago

Add documentation using Sphinx and pydoctor, automate doc generation.

File size: 365 bytes
RevLine 
[170]1"""
2A basic XMPP client.
3"""
4
5from twisted.application import service
6from twisted.words.protocols.jabber.jid import JID
7
8from wokkel import client
9
10jid = JID("user@example.org")
11password = 'secret'
12
13application = service.Application('XMPP client')
14xmppClient = client.XMPPClient(jid, password)
15xmppClient.logTraffic = True
16xmppClient.setServiceParent(application)
Note: See TracBrowser for help on using the repository browser.