tavendo/AutobahnJS — pull request #37 by miracle2k (2013-11-18 13:24:32+00:00)
Title: Make ab.connect() return the session object right away

Similar to socket.io:

var session = ab.connect('url', function() {});

Rather then the more ugly:

var session;
ab.connect('url', function(s) { session = s; });