@@ -83,7 +83,7 @@ DDPClient.prototype._clearReconnectTimeout = function() {
8383 clearTimeout ( self . reconnectTimeout ) ;
8484 self . reconnectTimeout = null ;
8585 }
86- }
86+ } ;
8787
8888DDPClient . prototype . _recoverNetworkError = function ( ) {
8989 var self = this ;
@@ -248,9 +248,6 @@ DDPClient.prototype.connect = function(connected) {
248248
249249 // websocket
250250 var protocol = self . use_ssl ? 'wss://' : 'ws://' ;
251- //XXX: These aren't in faye-websocket. Are they still needed?
252- //var options = self.use_ssl ? {rejectUnauthorized: self.use_ssl_strict} : {};
253- //self.socket = new WebSocket.Client(protocol + self.host + ':' + self.port + '/' + self.path, options);
254251 self . socket = new WebSocket . Client ( protocol + self . host + ':' + self . port + '/' + self . path ) ;
255252 self . _prepareHandlers ( ) ;
256253} ;
@@ -282,25 +279,25 @@ DDPClient.prototype._login = function(loginParams, password, callback) {
282279 if ( conf ) {
283280 callback ( null , result ) ;
284281 } else {
285- callback ( { error : "The HAMK doesn't match. Possible MITM attack" } ) ;
282+ callback ( { error : "The HAMK doesn't match. Possible MITM attack" } ) ;
286283 }
287284
288285 } ) ;
289286 } ) ;
290- }
287+ } ;
291288
292289DDPClient . prototype . loginWithEmail = function ( email , password , callback ) {
293290 this . _login ( { email : email } , password , callback ) ;
294- }
291+ } ;
295292
296293DDPClient . prototype . loginWithUsername = function ( username , password , callback ) {
297294 this . _login ( { username : username } , password , callback ) ;
298- }
295+ } ;
299296
300297DDPClient . prototype . loginWithToken = function ( token , callback ) {
301298 var self = this ;
302299 self . call ( "login" , [ { resume : token } ] , callback ) ;
303- }
300+ } ;
304301
305302DDPClient . prototype . close = function ( ) {
306303 var self = this ;
0 commit comments