"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 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."
Now in vert.x, i normally initialize my sockjs/http server as follows:
var httpServer = vertx.createHttpServer();
var sockJSServer = vertx.createSockJSServer(httpServer);
sockJSServer.bridge({prefix : '/eventbus'}, [], [] );
server.listen(8080);
If i access the eventbus and http from the same browser application,
does it mean that will be using sockjs and http from the same domain.
Assuming that my browser does not support websockets, does
it mean 'xhr_streaming'(or whatever sockjs fallsback to) and
my ajax requests will be competing for the 2 outgoing connections
that the browser provides?
I hope the question makes sense.
Thanks
Josh