I'm not sure if this is the desired behaviour, a bug or just a bad configuration on my server.
I would expect that a "real-time" message should appear immediately at the recipient accounts. Currently this is only the case if the corresponding conpherence is open or after the user clicks on a link and triggers any HTTP requests.
In my understanding of the real-time message feature, all participants of a conpherence should get notified (by a "1" at the speech bubble icon) when they receive a message by another participant of the same conference.
No further user actions should be required. I know that this is possible with the used technology (Websocket and JavaScript).
This is how I can reproduce this issue on my machine:
Precondition: I have two users, "user1" and "user2", who have a ongoing conpherence. Both are logged out.
Step #1: Login of user1
Step #2: Login of user 2
Step #3: User1 goes to the conference room
Step #4: User 1 sends a message
Expected behaviour: User2 receives a message notification even if he is idle.
Actual behaviour: User2 does not receive a message notification as long as he does not click on a link.
Further observations:
The websocket for user2 is open and sends a "subscribe command":
"command":"subscribe","data":["PHID-USER-fp7ymdtiukgtvi46af6h"]}
But that's all. There are no incomming messages.
Git revision of my phabricator installation: 96e7f766ff03e9db5b3fab47ddb4ba053b65f2bd
Here my aphlict.log:
### Step #1: Login of user1 [Sun Aug 30 2015 23:26:37 GMT+0200 (CEST)] <Listener/78/> Connected from xxx.xxx.xxx.xxx. [Sun Aug 30 2015 23:26:37 GMT+0200 (CEST)] <Listener/78/> Received message: {"command":"subscribe","data":["PHID-USER-d72u5jwwaqaxqefkykhr"]} [Sun Aug 30 2015 23:26:37 GMT+0200 (CEST)] <Listener/78/> Subscribed to: ["PHID-USER-d72u5jwwaqaxqefkykhr"] ### Step #2: Login of user 2 [Sun Aug 30 2015 23:27:03 GMT+0200 (CEST)] <Listener/79/> Connected from xxx.xxx.xxx.xxx. [Sun Aug 30 2015 23:27:03 GMT+0200 (CEST)] <Listener/79/> Received message: {"command":"subscribe","data":["PHID-USER-fp7ymdtiukgtvi46af6h"]} [Sun Aug 30 2015 23:27:03 GMT+0200 (CEST)] <Listener/79/> Subscribed to: ["PHID-USER-fp7ymdtiukgtvi46af6h"] ### Step #3: User1 goes to the conference room [Sun Aug 30 2015 23:27:28 GMT+0200 (CEST)] <Listener/78/> Disconnected. [Sun Aug 30 2015 23:27:29 GMT+0200 (CEST)] <Listener/80/> Connected from xxx.xxx.xxx.xxx. [Sun Aug 30 2015 23:27:29 GMT+0200 (CEST)] <Listener/80/> Received message: {"command":"subscribe","data":["PHID-CONP-wfrgifxmk6edcjdwwzqc","PHID-USER-d72u5jwwaqaxqefkykhr"]} [Sun Aug 30 2015 23:27:29 GMT+0200 (CEST)] <Listener/80/> Subscribed to: ["PHID-CONP-wfrgifxmk6edcjdwwzqc","PHID-USER-d72u5jwwaqaxqefkykhr"] ### Step #4: User 1 sends a message [Sun Aug 30 2015 23:28:09 GMT+0200 (CEST)] Received notification (/): {"type":"message","threadPHID":"PHID-CONP-wfrgifxmk6edcjdwwzqc","messageID":64,"subscribers":["PHID-CONP-wfrgifxmk6edcjdwwzqc"]} [Sun Aug 30 2015 23:28:09 GMT+0200 (CEST)] <Listener/73/> Wrote Message [Sun Aug 30 2015 23:28:09 GMT+0200 (CEST)] <Listener/80/> Wrote Message