shanewholloway/js-u8-mqtt

TLS?

Closed this issue · 5 comments

I looked at the code and I didn't seem to find anything to specify TLS params so I'm assuming it's not supported at all but I'm not sure

It wasn't supported, so I created an initial implementation in 5b6c58f. It needs to be tested on Node and Deno before I publish a new version. Feel free to pull the library down and try it in the meantime.

I won't have time to focus of this over the weekend, so I published prerelease u8-mqtt@0.3.2-0 to allow you to the new TLS support and provide feedback.

hey @shanewholloway thanks a lot for this, I had other priorities over the week but I'm trying to try it right now -- stumbling a bit on the lack of TS types lol, generated some with dts-gen and going to adapt them properly, but I'm unsure as to what to do with client_id (coming from aws-crt's mqtt client)

their comments on client_id say: "ID to place in CONNECT packet. Must be unique across all devices/clients. If an ID is already in use, the other client will be disconnected."

ok the TLS support is actually working properly so I'm closing this :) 👍