[Pkg-javascript-commits] [sockjs-client] 311/434: Few more comments about jsonp.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 088df5a5cb8c90c83b32a6f8ee6927e604542a0a
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Mon Jan 16 12:29:32 2012 +0000

    Few more comments about jsonp.
---
 README.md | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 4057822..10ebe03 100644
--- a/README.md
+++ b/README.md
@@ -183,7 +183,7 @@ iframe-htmlfile      | [HtmlFile][^8] used from an [iframe via postMessage][^3].
 xhr-polling          | Long-polling using [cross domain XHR][^5].
 xdr-polling          | Long-polling using [XDomainRequest][^9].
 iframe-xhr-polling   | Long-polling using normal AJAX from an [iframe via postMessage][^3].
-jsnop-polling        | Slow and old fashioned [JSONP polling][^6].
+jsnop-polling        | Slow and old fashioned [JSONP polling][^6]. This transport will show "busy indicator" (aka: "spinning wheel").
 
 
 [^1]: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76
@@ -302,12 +302,10 @@ There are various browser quirks which we don't intend to address:
 
  * Pressing ESC in Firefox closes SockJS connection ([described
    in socket.io thread](https://groups.google.com/group/socket_io/browse_thread/thread/a705e4cb532e8808)).
- * Some older transports may result in a browser showing "spinning
-   wheel" or "busy indicator".
+ * Jsonp-polling transport will show a "spinning wheel" (aka. "busy indicator").
  * In most of the browsers you can't open more than one SockJS
-   connection to one domain at the same time.
- * You shouldn't start SockJS connection before `body` loads - don't
-   create SockJS objects within `head` (see #15).
+   connection to one domain at the same time (with the exception
+   of native websockets).
  * Although SockJS is trying to escape any strange Unicode characters
    (even
    [invalid ones, like surrogates](http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Surrogates),
@@ -315,4 +313,4 @@ There are various browser quirks which we don't intend to address:
    characters is a bit slower, and may not work with SockJS servers
    that have a proper Unicode support.
  * Having a global function called `onmessage` or such is probably a
-   bad idea.
+   bad idea, as it could be called by the built-in `postMessage` API.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list