On Github toudi / meet-js-xmpp-client-slides
google :: xmpp jquery (książka)
$(function(){ var connection = new Strophe("http://serwer/"); $("#login").click(function(){ connection.connect( ..., function(status) { } ); }); connection. });
var XMPPClient = new Class({ initialize: function(url) { this.connection = new Strophe(url); }, connect: function(jid, password) { var that = this; this.connection.connect( ... , function(status) { that.connected(); }) } });
var MyXmppClient = new Class({ extends: XMPPClient, connected: function() { .... } });
$(function(){ var client = new MyXmppClient('http://serwer/'); });
Wydzielenie modułów
0. xmpp-over-websocket NIE wspiera zapisywania stanu
1. ANGTFT == Ain't nobody got time for that!
Biblioteka Dokumentacja Zapisywanie stanu Attach Websockety? strophe.js techniczna + książka 1/10 TAK branche lightstring ANGTFT ? TAK (nadpisywanie rid) TAK JSJAC techniczna + minimalny klient TAK TAK (konstruktor) TAKlocation /xmpp { proxy_read_timeout 320; proxy_send_timeout 320; proxy_connect_timeout 320; proxy_pass http://localhost:5280/http-bind/; proxy_buffering off; tcp_nodelay on; }
Linus Torvalds