Passing assigns to LiveView JS Hook's `mounted` callback

How exactly would this work? I’m assuming the answer to the question is ‘no’ you can’t access it from the mounted event?

In my mind I would need to do something like this:

  1. Liveview loads
  2. Mounted callback is triggered
  3. Server somehow knows that mounted was called (perhaps by mounted sending a message?)
  4. Server pushes an event to everyone

Is that correct? Or am I way off base here