Thank you. My code was perfectly fine but I was passing in the wrong canister Id the entire time. I figured out that I should have done [id].localhost:4943/stream
instead of [canisterId].localhost:4933/stream
.
I realized that the id refers to the canister id and canisterId refers to the Candid UI id. I asked another question about that here: What is the difference between canisterId and id?.
Hopefully, this helps another developer!