Do the MVEL operators for filtered subscriptions described in Streaming API documentation really work?
I've tried a few variations of this (i.e. with/without quotes, double/single == etc.):
j$.cometd.subscribe("/topic/MyTopic?User__c=='{!$User.Id}'", callback);
And cannot get it to work (i.e. I cannot filter the records by user, I get ALL records). Does anyone have any experience of using this successfully?
EDIT:
To make sure I hadn't missed anything, I tried subscribing (separately) as follows:
j$.cometd.subscribe("/topic/MyTopic?User__c=='{!$User.Id}'", callback);
j$.cometd.subscribe("/topic/MyTopic?User__c=={!$User.Id}", callback);
j$.cometd.subscribe("/topic/MyTopic?User__c='{!$User.Id}'", callback);
j$.cometd.subscribe("/topic/MyTopic?User__c={!$User.Id}", callback);
I examined the Request Payload using Chrome and it appears that nothing has gone awry:
[{ "channel":"/meta/subscribe",
"subscription":"/topic/MyTopic?User__c=='005A0000000gqi6IAA'",
"id":"2",
"clientId":"85d1vkpu673gnvdq1mt73bp37xyz" }]
And still, each time I still get ALL records instead of filtered by my User ID.