busterjs/buster — Issue #111: buster-capture-server: Only one connection for messaging
Author: augustl
Created: 2012-02-25 20:32:57+00:00
State: open

We currently use two. This causes older IEs and older browsers in general to be slow and unreliable, since they only support two concurrent connections. Faye will use them both, and only occasionally will one be used for downloading scripts, css, etc.

To fix this we use one faye adapter, and context paths for session scoped messaging. buster-capture-server will provide a module for creating a messaging client where `publish` and `subscribe` is scoped to one session. In other words, depend on and use buster-capture-server instead of faye directly. In browsers, `buster.publish` and `buster.subscribe` will also be scoped with the context path.