Conditional Rendering With Turbo Stream Broadcasts

A very common pattern in Rails development is views that contain checks like current_user.can?(:take_some_action). These types of checks are common, especially in B2B applications that implement role-based permissions powered by a solution like Pundit.

So, naturally, when a Rails developer begins working with Turbo Stream broadcasts, they wonder how to access the current_user