node.js v6 preparations
This commit is contained in:
parent
380f28029b
commit
eba254e294
2
botanss
2
botanss
@ -1 +1 @@
|
||||
Subproject commit f3ba7a4a2df12fa280081264a5bb907480cddc93
|
||||
Subproject commit cbf2246b523f647e6a44abe2f76fbace4c2dbb47
|
2
index.js
2
index.js
@ -47,7 +47,7 @@ else
|
||||
Dragonfly = new Dragonfly();
|
||||
global.Dragonfly = Dragonfly;
|
||||
|
||||
GLOBAL.X_SERVER_CLUSTER = cluster;
|
||||
global.X_SERVER_CLUSTER = cluster;
|
||||
|
||||
var AppDomain = cl.load( "botanss.net.AppDomain" );
|
||||
var Httph = cl.load( "botanss.net.Http" );
|
||||
|
@ -73,6 +73,8 @@ class WNSAuth extends EventEmitter
|
||||
|
||||
uuid = Rand.uuid();
|
||||
|
||||
Dragonfly.Debug( "ChannelUri: " + ChannelUri );
|
||||
|
||||
_self.__send( ChannelUri, N, ( sender, e ) => {
|
||||
|
||||
if( typeof( e ) == "string" )
|
||||
@ -87,6 +89,7 @@ class WNSAuth extends EventEmitter
|
||||
return;
|
||||
}
|
||||
|
||||
Dragonfly.Debug( e.statusCode + ": " + e.ResponseString );
|
||||
handler( _self, e.statusCode + " Server Error: Unable to push message to channel" );
|
||||
} );
|
||||
};
|
||||
@ -245,6 +248,7 @@ class WNSAuth extends EventEmitter
|
||||
AuthToken = JResponse.access_token;
|
||||
Dragonfly.Info( "Authorization Success" );
|
||||
|
||||
Dragonfly.Debug( AuthTokenName + ": " + AuthToken );
|
||||
Model.Tokens
|
||||
.update(
|
||||
{ name: AuthTokenName }
|
||||
|
Loading…
Reference in New Issue
Block a user