I've successfully established the connection and I can simulate a chat sending messages back and forth on a specific topic (e.g. chat/room/1) between my iOS Simulator and Web Service.
However, I now want my iOS to subscribe using a wild card to chat/room/*, but it doesn't work as a wild card.
My code:
mqttClient.subscribe("chat/room/*", qos: 2)
To be clear, after my iOS Simulator subscribed to chat/room/*:
I CANNOT receive messages that are published to chat/room/1 or chat/room/2
but I CAN receive messages that are published explicitly to chat/room/*
I've successfully established the connection and I can simulate a chat sending messages back and forth on a specific topic (e.g.
chat/room/1
) between my iOS Simulator and Web Service.However, I now want my iOS to subscribe using a wild card to
chat/room/*
, but it doesn't work as a wild card.My code:
To be clear, after my iOS Simulator subscribed to
chat/room/*
:chat/room/1
orchat/room/2
chat/room/*