Closed sshanks-kx closed 1 year ago
Should be ok. Even though an mqtt thread could get the sub data prior to the table/callback setup, the kdb thread wont be free to read it til the end of the script (by which the callback will be setup). Will prob change anyway to be a better practise to have everything setup prior to sub.
Looks like a message could potentially arrive before the subscription table created (could be altered to setup prior to the event) https://github.com/KxSystems/mqtt/blob/master/examples/consumer.q