source:
doc/listings/client/client1.tac
Last change on this file was 170:bb143a4ae70d, checked in by Ralph Meijer <ralphm@…>, 10 years ago | |
---|---|
File size: 365 bytes |
Line | |
---|---|
1 | """ |
2 | A basic XMPP client. |
3 | """ |
4 | |
5 | from twisted.application import service |
6 | from twisted.words.protocols.jabber.jid import JID |
7 | |
8 | from wokkel import client |
9 | |
10 | jid = JID("user@example.org") |
11 | password = 'secret' |
12 | |
13 | application = service.Application('XMPP client') |
14 | xmppClient = client.XMPPClient(jid, password) |
15 | xmppClient.logTraffic = True |
16 | xmppClient.setServiceParent(application) |
Note: See TracBrowser
for help on using the repository browser.