Travis Griggs

Results 5 comments of Travis Griggs

Based on people referencing a note in the doc that says you're not supposed to rebind pointers to different size pointers using `withMemoryRebound`, I rewrote the cksum computation as follows:...

I ended up further inlining the via: registry lookup: ``` Registry.lookup(Tortoise.Registry, {Tortoise.Connection, connection_id}) |> case do [{pid, nil}] -> GenServer.call(pid, :disconnect) _ -> connection_id |> IO.inspect(label: "CONNECTION NOT PRESENT") end...

I ended up using the following pattern (#general channel on slack was helpful) ``` def connect(handler, state) do ... Tortoise.Supervisor.start_child( client_id: MC.Keypair.mqtt_id(mc.keypair), server: server, user_name: username, password: mc.passkey1, subscriptions: subscriptions,...

It appears that the the only time that Window.swizzle() is called is on an activation event. So the "how to use this" makes a BIG assumption that you will call...

This is still the case apparently. Thanks for documenting the re-activation activation. I figured it was just completely broken :)