[Pkg-javascript-commits] [sockjs-client] 177/434: Clarify opening multiple SockJS connections using subdomains.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:12 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 049e61ec3031736f72b923fff8109d66c3472597
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Sun Oct 23 23:02:51 2011 +0200

    Clarify opening multiple SockJS connections using subdomains.
---
 README.md | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index e528caa..e6f8e35 100644
--- a/README.md
+++ b/README.md
@@ -123,13 +123,18 @@ Where `options` is a hash which can contain:
 Although the 'SockJS' object tries to emulate the 'WebSocket'
 behaviour, it's impossible to support all features. One of the
 important SockJS limitations is the fact that you're not allowed to
-open more than one SockJS connection at a time. This limitation is
-caused by a in-browser limit of outgoing connections - usually
-browsers don't allow opening more than two outgoing
-connections. Single SockJS session requires those two connections -
-one for downloading data, other for sending messages.  Second SockJS
-session opened at the same time would most probably block and can
-result in both sessions timing out.
+open more than one SockJS connection to a single domain at a time.
+This limitation is caused by a in-browser limit of outgoing
+connections - usually browsers don't allow opening more than two outgoing
+connections to a single domain. Single SockJS session requires those two connections -
+one for downloading data, other for sending messages.  Opening second SockJS
+session at the same time would most probably block and can
+result in both sessions timing out. 
+
+Opening more than one SockJS connection at a time is generally a
+bad practice. If you absolutely must do it, you can use
+mutliple subdomains, using different subdomain for every
+SockJS connection.
 
 
 Supported transports (#1)

-- 
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