You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
$(document).ready(function() {
let client = Stomp.client("ws://127.0.0.1:61613");
// this allows to display debug logs directly on the web page
client.debug = function (str) {
console.log(str);
};
// the client is notified when it is connected to the server.
// let headers = {"ack": "client", "selector": "location = 'Europe'"};
let connected = function(frame) {
client.subscribe("/test", function(message) {
$("#messages").append("<p>" + message.body + "</p>\n");
}, {"durable-subscription-name": "filter", "selector": "tag = 'aaa'"});
};
client.connect({"client-id": "abc"}, connected);
});
</script>
but the setting of selector is ineffective (connection and subscribe is correct), the client can receive message with other tags, such as bbb . The debug output is:
My server is Artemis 2.16, and js code is:
but the setting of
selector
is ineffective (connection and subscribe is correct), the client can receive message with other tags, such asbbb
. The debug output is:Why???
The text was updated successfully, but these errors were encountered: