Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14011047
D9487.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D9487.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -477,7 +477,7 @@
'rsrc/js/phuix/PHUIXActionListView.js' => 'b5c256b8',
'rsrc/js/phuix/PHUIXActionView.js' => '6e8cefa4',
'rsrc/js/phuix/PHUIXDropdownMenu.js' => 'bd4c8dca',
- 'rsrc/swf/aphlict.swf' => 'd9bca85d',
+ 'rsrc/swf/aphlict.swf' => '2dea6ddc',
),
'symbols' =>
array(
diff --git a/support/aphlict/client/src/AphlictClient.as b/support/aphlict/client/src/AphlictClient.as
--- a/support/aphlict/client/src/AphlictClient.as
+++ b/support/aphlict/client/src/AphlictClient.as
@@ -31,6 +31,7 @@
private var remoteServer:String;
private var remotePort:Number;
+ private var subscriptions:Array;
public function AphlictClient() {
@@ -51,8 +52,9 @@
this.externalInvoke('connect');
- this.remoteServer = server;
- this.remotePort = port;
+ this.remoteServer = server;
+ this.remotePort = port;
+ this.subscriptions = subscriptions;
this.client = AphlictClient.generateClientId();
this.recv.connect(this.client);
@@ -61,10 +63,6 @@
this.timer.addEventListener(TimerEvent.TIMER, this.keepalive);
this.connectToMaster();
-
- // Send subscriptions to master.
- this.log('Sending subscriptions to master.');
- this.send.send('aphlict_master', 'subscribe', this.client, subscriptions);
}
/**
@@ -95,11 +93,26 @@
this.error(err);
}
+ this.registerWithMaster();
+ this.timer.start();
+ }
+
+ /**
+ * Register our client ID with the @{class:AphlictMaster} and send our
+ * subscriptions.
+ */
+ private function registerWithMaster():void {
this.send.send('aphlict_master', 'register', this.client);
this.expiry = new Date().getTime() + (5 * AphlictClient.INTERVAL);
this.log('Registered client ' + this.client);
- this.timer.start();
+ // Send subscriptions to master.
+ this.log('Sending subscriptions to master.');
+ this.send.send(
+ 'aphlict_master',
+ 'subscribe',
+ this.client,
+ this.subscriptions);
}
/**
diff --git a/webroot/rsrc/swf/aphlict.swf b/webroot/rsrc/swf/aphlict.swf
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 4:01 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739842
Default Alt Text
D9487.diff (2 KB)
Attached To
Mode
D9487: Move subscription updates to the `register` function.
Attached
Detach File
Event Timeline
Log In to Comment