forked from mondora/asteroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a couple of bugs. Fixed tests.
- Loading branch information
Paolo Scanferla
committed
Sep 15, 2014
1 parent
fc18e6f
commit b7ba297
Showing
9 changed files
with
135 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
////////////////////////// | ||
// Asteroid constructor // | ||
////////////////////////// | ||
|
||
var Asteroid = function (host, ssl, socketInterceptFunction, instanceId) { | ||
// Assert arguments type | ||
Asteroid.utils.must.beString(host); | ||
// An id may be assigned to the instance. This is to support | ||
// resuming login of multiple connections to the same host. | ||
this._instanceId = instanceId || "0"; | ||
// Configure the instance | ||
this._host = (ssl ? "https://" : "http://") + host; | ||
// Reference containers | ||
this.collections = {}; | ||
this.subscriptions = {}; | ||
this._subscriptionsCache = {}; | ||
// Set __ddpOptions | ||
this._setDdpOptions(host, ssl, socketInterceptFunction); | ||
// Init the instance | ||
this._init(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters