It is possible to use multiple user subscriptions per client. I want to be able to receive different types of messages, my task is wider than just chat. The client must receive different objects and process them differently.
How a client can address a message to another specific client, I have not found an example anywhere. For example, only a broker client. Or broker specific client
MQTT autodiscovery:
Private Sub client_Connected (Success As Boolean)
If Success=True Then
client.Subscribe("all/#", 0)
client.Subscribe("time", 0)
client.Subscribe("signal", 0)
client.Publish2("all/connect", serializator.ConvertObjectToBytes(Name), 0, False)
Private Sub client_MessageArrived (Topic As String, Payload() As Byte)
Dim receivedObject As Object
receivedObject = serializator.ConvertBytesToObject(Payload)
Select Topic
Case "all/connect", "all/disconnect"
....
Case "time"
....
Case "signal"
....
How a client can address a message to another specific client, I have not found an example anywhere. For example, only a broker client. Or broker specific client