changeset 9:24bc40461b2c

better README
author Sonny Piers <sonny.piers@gmail.com>
date Sun, 15 Jan 2012 02:15:23 +0100
parents 08a8d8c4c324
children 9c9e19a3829d
files README lightstring.js
diffstat 2 files changed, 15 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/README
+++ b/README
@@ -1,15 +1,16 @@
 Known support
   Browser:
     See: http://caniuse.com/#search=websocket
-    For non websocket-aware browsers you can use https://github.com/gimite/web-socket-js/ , "HTML5 Web Socket implementation powered by Flash".
+    For non websocket-aware browsers you can use 
+    https://github.com/gimite/web-socket-js/
   Server:
     node-xmpp-bosh
 
 References
   XMPP:
-    http://xmpp.org/rfcs/rfc6120.html RFC 6120 - XML streams, SASL, TLS, stanza semantics 
-    http://xmpp.org/rfcs/rfc6121.html RFC 6121 - XMPP extensions for basic instant messaging and presence
-    http://xmpp.org/rfcs/rfc6122.html RFC 6122 - XMPP address format
+    http://xmpp.org/rfcs/rfc6120.html
+    http://xmpp.org/rfcs/rfc6121.html
+    http://xmpp.org/rfcs/rfc6122.html
     http://xmpp.org/xmpp-protocols/xmpp-extensions/
   WebSocket:
     http://dev.w3.org/html5/websockets/
@@ -20,8 +21,8 @@ References
 
 Similar/related software
   Server-side:
-    https://code.google.com/p/node-xmpp-bosh/ (a websocket/bosh proxy)
-    https://github.com/superfeedr/ejabberd-websockets (a module that adds websocket support to ejabberd)
-    https://code.google.com/p/prosody-modules/wiki/mod_websocket (a module that adds websocket support to prosody)
+    https://code.google.com/p/node-xmpp-bosh/
+    https://github.com/superfeedr/ejabberd-websockets
+    https://code.google.com/p/prosody-modules/wiki/mod_websocket
   Client-side:
-    https://github.com/superfeedr/strophejs/tree/protocol-ed (a websocket-aware fork of strophejs)
+    https://github.com/superfeedr/strophejs/tree/protocol-ed
--- a/lightstring.js
+++ b/lightstring.js
@@ -73,6 +73,12 @@ Lightstring.Connection = function (aServ
                         xmlns='jabber:client'\
                         xmlns:stream='http://etherx.jabber.org/streams'\
                         version='1.0'/>";
+      //FIXME should be this but doesn't works with node-xmpp-bosh
+      //~ var stream =
+      //~   "<stream:stream to='"+that.domain+"'\
+                        xmlns='jabber:client'\
+                        xmlns:stream='http://etherx.jabber.org/streams'\
+                        version='1.0'/>";
       that.socket.send(stream)
       that.emit('XMLOutput', stream);
     });